pub enum RunsOnMatch {
Match {
runner_group: Option<String>,
},
NoMatch {
missing: Vec<Label>,
},
Unresolvable(UnresolvableRunsOn),
}Expand description
The outcome of matching one job’s runs-on against a policy’s labels.
Variants§
Match
The job’s required labels are all present.
runner_group carries the group: key when the map form named one. The
domain does not evaluate it — a policy has no runner-group field, and
c4 resolves the group id at registration time — but it is returned
rather than discarded so that a caller which can evaluate it is not
forced to re-parse the runs-on.
NoMatch
At least one required label is absent. missing is what to tell an
operator who expected this policy to pick the job up.
Unresolvable(UnresolvableRunsOn)
The runs-on cannot be resolved without evaluating the workflow.
Implementations§
Source§impl RunsOnMatch
impl RunsOnMatch
Trait Implementations§
Source§impl Clone for RunsOnMatch
impl Clone for RunsOnMatch
Source§fn clone(&self) -> RunsOnMatch
fn clone(&self) -> RunsOnMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunsOnMatch
impl Debug for RunsOnMatch
impl Eq for RunsOnMatch
Source§impl PartialEq for RunsOnMatch
impl PartialEq for RunsOnMatch
impl StructuralPartialEq for RunsOnMatch
Auto Trait Implementations§
impl Freeze for RunsOnMatch
impl RefUnwindSafe for RunsOnMatch
impl Send for RunsOnMatch
impl Sync for RunsOnMatch
impl Unpin for RunsOnMatch
impl UnsafeUnpin for RunsOnMatch
impl UnwindSafe for RunsOnMatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more