pub struct JitRunner {
pub id: u64,
pub name: String,
pub os: String,
pub status: String,
pub busy: bool,
pub runner_group_id: Option<u64>,
pub labels: Vec<String>,
}Expand description
The runner GitHub registered, as it described it in the 201.
Distinct from crate::rest::Runner, which is what the inventory endpoint
reports, and deliberately so: this one carries runner_group_id, which the
inventory shape has no field for and which is the value an operator needs
when a later registration is refused for the group.
Fields§
§id: u64§name: String§os: String§status: String§busy: bool§runner_group_id: Option<u64>Optional in the wire schema. v1 observed it present at both scopes; it
stays optional because a missing field is not a reason to fail a
registration that GitHub already accepted.
labels: Vec<String>The labels GitHub actually stored, lower-cased — see the module documentation. Comparing these against what was requested is how a caller learns that no labels were added implicitly.
Trait Implementations§
impl Eq for JitRunner
impl StructuralPartialEq for JitRunner
Auto Trait Implementations§
impl Freeze for JitRunner
impl RefUnwindSafe for JitRunner
impl Send for JitRunner
impl Sync for JitRunner
impl Unpin for JitRunner
impl UnsafeUnpin for JitRunner
impl UnwindSafe for JitRunner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.