pub struct RepositoryStatus {
pub name: String,
pub profile: String,
pub labels: Vec<String>,
pub pools: Vec<PoolStatus>,
pub paused: bool,
pub queued_jobs: usize,
}Expand description
A configured repository and its queue.
Fields§
§name: Stringowner/name on GitHub.
profile: StringIts first pool’s profile, which clients before pools show.
labels: Vec<String>Its first pool’s labels, which clients before pools show.
pools: Vec<PoolStatus>Its pools in config order, one per [[repositories]] entry: a job runs in the one whose labels match it
(ADR 0058). Empty from a daemon before pools; listed_pools reads either.
paused: boolPaused repositories get no new runners; their running jobs finish.
queued_jobs: usizeIts jobs in Status::queued: queued ones none of its runners took yet, those no pool serves too.
Implementations§
Source§impl RepositoryStatus
impl RepositoryStatus
Sourcepub fn listed_pools(&self) -> Vec<PoolStatus>
pub fn listed_pools(&self) -> Vec<PoolStatus>
Its pools, or from a daemon before pools its one profile and labels.
Trait Implementations§
Source§impl Clone for RepositoryStatus
impl Clone for RepositoryStatus
Source§impl Debug for RepositoryStatus
impl Debug for RepositoryStatus
Source§impl<'de> Deserialize<'de> for RepositoryStatus
impl<'de> Deserialize<'de> for RepositoryStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RepositoryStatus
Source§impl PartialEq for RepositoryStatus
impl PartialEq for RepositoryStatus
Source§impl Serialize for RepositoryStatus
impl Serialize for RepositoryStatus
impl StructuralPartialEq for RepositoryStatus
Auto Trait Implementations§
impl Freeze for RepositoryStatus
impl RefUnwindSafe for RepositoryStatus
impl Send for RepositoryStatus
impl Sync for RepositoryStatus
impl Unpin for RepositoryStatus
impl UnsafeUnpin for RepositoryStatus
impl UnwindSafe for RepositoryStatus
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.