pub struct CiStatus(pub String);Expand description
A CI status.
Deliberately a string rather than an enum. GitFox’s set today is blocked,
declined, error, failure, killed, pending, running, skipped,
success and waiting_on_dependencies, but a CI system grows states over
time; a closed enum would either lose the server’s exact word or fail to
decode. Everything fx needs is classification, and that is what the
predicates below provide.
Tuple Fields§
§0: StringImplementations§
Source§impl CiStatus
impl CiStatus
pub fn as_str(&self) -> &str
Sourcepub fn is_failed(&self) -> bool
pub fn is_failed(&self) -> bool
Something went wrong and there is likely a log worth reading.
declined and skipped are excluded on purpose: they never ran, so
fx pipeline logs --failed would only show empty output for them.
pub fn is_success(&self) -> bool
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Still going, or waiting to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CiStatus
impl<'de> Deserialize<'de> for CiStatus
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 CiStatus
impl StructuralPartialEq for CiStatus
Auto Trait Implementations§
impl Freeze for CiStatus
impl RefUnwindSafe for CiStatus
impl Send for CiStatus
impl Sync for CiStatus
impl Unpin for CiStatus
impl UnsafeUnpin for CiStatus
impl UnwindSafe for CiStatus
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.