pub struct SuspendStateRecord {
pub schema_version: u32,
pub state: SuspendLifecycleState,
pub loop_id: String,
pub phase_event: HookPhaseEvent,
pub hook_name: String,
pub reason: String,
pub suspend_mode: HookSuspendMode,
pub suspended_at: DateTime<Utc>,
}Expand description
Durable suspend-state payload written when a hook yields on_error: suspend.
Fields§
§schema_version: u32§state: SuspendLifecycleState§loop_id: String§phase_event: HookPhaseEvent§hook_name: String§reason: String§suspend_mode: HookSuspendMode§suspended_at: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl Clone for SuspendStateRecord
impl Clone for SuspendStateRecord
Source§fn clone(&self) -> SuspendStateRecord
fn clone(&self) -> SuspendStateRecord
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 SuspendStateRecord
impl Debug for SuspendStateRecord
Source§impl<'de> Deserialize<'de> for SuspendStateRecord
impl<'de> Deserialize<'de> for SuspendStateRecord
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 SuspendStateRecord
impl PartialEq for SuspendStateRecord
Source§impl Serialize for SuspendStateRecord
impl Serialize for SuspendStateRecord
impl Eq for SuspendStateRecord
impl StructuralPartialEq for SuspendStateRecord
Auto Trait Implementations§
impl Freeze for SuspendStateRecord
impl RefUnwindSafe for SuspendStateRecord
impl Send for SuspendStateRecord
impl Sync for SuspendStateRecord
impl Unpin for SuspendStateRecord
impl UnsafeUnpin for SuspendStateRecord
impl UnwindSafe for SuspendStateRecord
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.