pub struct LifecycleStep {
pub subject: Subject,
pub phase: Phase,
pub client_key: Option<ClientOrderKey>,
}Expand description
A lifecycle transition and the subject it concerns.
Fields§
§subject: Subject§phase: Phase§client_key: Option<ClientOrderKey>The intent key an agent attached to this transition. Read only on
Phase::Submission; carried on the step rather than inside the phase
so a record written before the field existed still parses and still
serializes byte-identically when absent.
Absent means the agent claimed nothing, which is the honest default: a missing key is never treated as matching another missing key.
Implementations§
Source§impl LifecycleStep
impl LifecycleStep
Sourcepub fn new(subject: Subject, phase: Phase) -> Self
pub fn new(subject: Subject, phase: Phase) -> Self
Convenience constructor. The step carries no intent key.
Sourcepub fn with_client_key(self, key: ClientOrderKey) -> Self
pub fn with_client_key(self, key: ClientOrderKey) -> Self
Attach the intent key this submission carried.
Trait Implementations§
Source§impl Clone for LifecycleStep
impl Clone for LifecycleStep
Source§fn clone(&self) -> LifecycleStep
fn clone(&self) -> LifecycleStep
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 LifecycleStep
impl Debug for LifecycleStep
Source§impl<'de> Deserialize<'de> for LifecycleStep
impl<'de> Deserialize<'de> for LifecycleStep
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 LifecycleStep
impl PartialEq for LifecycleStep
Source§impl Serialize for LifecycleStep
impl Serialize for LifecycleStep
impl StructuralPartialEq for LifecycleStep
Auto Trait Implementations§
impl Freeze for LifecycleStep
impl RefUnwindSafe for LifecycleStep
impl Send for LifecycleStep
impl Sync for LifecycleStep
impl Unpin for LifecycleStep
impl UnsafeUnpin for LifecycleStep
impl UnwindSafe for LifecycleStep
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