pub struct StepSnapshot {
pub step_id: String,
pub step_name: String,
pub status: StepStatus,
pub input: JsonValue,
pub retry: RetryPolicy,
pub output: Option<JsonValue>,
pub error: Option<String>,
pub attempt: u32,
pub retry_after: Option<DateTime<Utc>>,
}Fields§
§step_id: String§step_name: String§status: StepStatus§input: JsonValue§retry: RetryPolicy§output: Option<JsonValue>§error: Option<String>§attempt: u32§retry_after: Option<DateTime<Utc>>Implementations§
Source§impl StepSnapshot
impl StepSnapshot
Sourcepub fn output_as<T>(&self) -> Result<Option<T>>where
T: DeserializeOwned,
pub fn output_as<T>(&self) -> Result<Option<T>>where
T: DeserializeOwned,
Decode the persisted step output into a host-defined serde type.
Trait Implementations§
Source§impl Clone for StepSnapshot
impl Clone for StepSnapshot
Source§fn clone(&self) -> StepSnapshot
fn clone(&self) -> StepSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StepSnapshot
impl Debug for StepSnapshot
Source§impl<'de> Deserialize<'de> for StepSnapshot
impl<'de> Deserialize<'de> for StepSnapshot
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 PartialEq for StepSnapshot
impl PartialEq for StepSnapshot
Source§fn eq(&self, other: &StepSnapshot) -> bool
fn eq(&self, other: &StepSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StepSnapshot
impl Serialize for StepSnapshot
impl StructuralPartialEq for StepSnapshot
Auto Trait Implementations§
impl Freeze for StepSnapshot
impl RefUnwindSafe for StepSnapshot
impl Send for StepSnapshot
impl Sync for StepSnapshot
impl Unpin for StepSnapshot
impl UnsafeUnpin for StepSnapshot
impl UnwindSafe for StepSnapshot
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