pub struct StepState {
pub kind: Kind,
pub status: Status,
pub attempt: u32,
pub activity: Option<String>,
pub queue: Option<String>,
pub retry: Option<RetryPolicy>,
pub child_run_id: Option<String>,
pub signal: Option<String>,
pub fire_at_ms: Option<u64>,
}Expand description
Kernel bookkeeping for one open step.
Fields§
§kind: KindStep kind.
status: StatusCurrent step status.
attempt: u32Current attempt (1-based for tasks, 0 for every other kind).
activity: Option<String>Activity name (tasks only).
queue: Option<String>Queue name (tasks only).
retry: Option<RetryPolicy>Retry policy (tasks only).
child_run_id: Option<String>Child run id (children only).
signal: Option<String>Signal name (signal waits only).
fire_at_ms: Option<u64>Fire time in milliseconds since the Unix epoch (timers only).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepState
impl<'de> Deserialize<'de> for StepState
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 StepState
Source§impl JsonSchema for StepState
impl JsonSchema for StepState
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 moreimpl StructuralPartialEq for StepState
Auto Trait Implementations§
impl Freeze for StepState
impl RefUnwindSafe for StepState
impl Send for StepState
impl Sync for StepState
impl Unpin for StepState
impl UnsafeUnpin for StepState
impl UnwindSafe for StepState
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