pub struct BlockingState {
pub status: BlockingStatus,
pub reason: BlockingReason,
pub task_id: Option<String>,
pub message: String,
pub detail: String,
pub observed_at: Option<String>,
}Fields§
§status: BlockingStatus§reason: BlockingReason§task_id: Option<String>§message: String§detail: String§observed_at: Option<String>When this blocking condition was observed (RFC3339 UTC), for staleness and automation.
Implementations§
Source§impl BlockingState
impl BlockingState
pub fn new( status: BlockingStatus, reason: BlockingReason, task_id: Option<String>, message: impl Into<String>, detail: impl Into<String>, ) -> Self
Sourcepub fn with_observed_at(self, observed_at: impl Into<String>) -> Self
pub fn with_observed_at(self, observed_at: impl Into<String>) -> Self
Attach the instant this blocking state was observed (RFC3339 UTC).
pub fn idle(include_draft: bool) -> Self
pub fn dependency_blocked(blocked_tasks: usize) -> Self
pub fn schedule_blocked( blocked_tasks: usize, next_runnable_at: Option<String>, seconds_until_next_runnable: Option<i64>, ) -> Self
pub fn mixed_queue( dependency_blocked: usize, schedule_blocked: usize, status_filtered: usize, ) -> Self
pub fn lock_blocked( lock_path: Option<String>, owner: Option<String>, owner_pid: Option<u32>, ) -> Self
pub fn ci_blocked(exit_code: Option<i32>, pattern: Option<String>) -> Self
pub fn runner_recovery( scope: impl Into<String>, reason: impl Into<String>, task_id: Option<String>, message: impl Into<String>, detail: impl Into<String>, ) -> Self
pub fn operator_recovery( status: BlockingStatus, scope: impl Into<String>, reason: impl Into<String>, task_id: Option<String>, message: impl Into<String>, detail: impl Into<String>, suggested_command: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for BlockingState
impl Clone for BlockingState
Source§fn clone(&self) -> BlockingState
fn clone(&self) -> BlockingState
Returns a duplicate of the value. Read more
1.0.0 · 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 BlockingState
impl Debug for BlockingState
Source§impl<'de> Deserialize<'de> for BlockingState
impl<'de> Deserialize<'de> for BlockingState
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
Source§impl JsonSchema for BlockingState
impl JsonSchema for BlockingState
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BlockingState
impl PartialEq for BlockingState
Source§impl Serialize for BlockingState
impl Serialize for BlockingState
impl Eq for BlockingState
impl StructuralPartialEq for BlockingState
Auto Trait Implementations§
impl Freeze for BlockingState
impl RefUnwindSafe for BlockingState
impl Send for BlockingState
impl Sync for BlockingState
impl Unpin for BlockingState
impl UnsafeUnpin for BlockingState
impl UnwindSafe for BlockingState
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.