Skip to main content

GateReading

Enum GateReading 

Source
pub enum GateReading {
    NoRequestWorkflows,
    Gated,
    NoSuchJob {
        contexts: Vec<String>,
    },
    UnprovenGateName {
        job: String,
    },
    OpaqueNeeds {
        workflow: String,
    },
    Ungated {
        jobs: Vec<String>,
    },
}
Expand description

What the workflows say about the required check.

Variants§

§

NoRequestWorkflows

No workflow runs on a pull request, so no job reports the check.

§

Gated

Every request-reporting context is the check, the title check, or a job the check needs.

§

NoSuchJob

No job reports the required check’s context on a pull request.

Fields

§contexts: Vec<String>

The contexts that do report, in file order.

§

UnprovenGateName

A job carries the check’s id, but names itself by an expression or runs a reusable workflow, so the context it reports is not in the file.

Fields

§job: String

The job id.

§

OpaqueNeeds

The check’s needs value is one this reader does not follow.

Fields

§workflow: String

The workflow file that carries it.

§

Ungated

Contexts that report on a pull request and gate nothing.

Fields

§jobs: Vec<String>

Their names, in file order.

Trait Implementations§

Source§

impl Debug for GateReading

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for GateReading

Source§

impl PartialEq for GateReading

Source§

fn eq(&self, other: &GateReading) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for GateReading

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.