pub struct ContextSessionStateV1 {
pub phase: ContextSessionPhaseV1,
pub revision: u64,
pub next_event_sequence: u64,
pub active_plan_id: Option<PlanId>,
pub receipt_id: Option<ReceiptId>,
pub last_checkpoint_digest: Option<Sha256Digest>,
pub recovery_state: ContextSessionRecoveryStateV1,
pub abort_reason: Option<ProtocolReference>,
}Expand description
Mutable checkpoint projection; it never replaces the append-only event log.
Fields§
§phase: ContextSessionPhaseV1§revision: u64§next_event_sequence: u64§active_plan_id: Option<PlanId>§receipt_id: Option<ReceiptId>§last_checkpoint_digest: Option<Sha256Digest>§recovery_state: ContextSessionRecoveryStateV1§abort_reason: Option<ProtocolReference>Implementations§
Source§impl ContextSessionStateV1
impl ContextSessionStateV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate lifecycle fields without relying on a mutable runtime implementation.
Trait Implementations§
Source§impl Clone for ContextSessionStateV1
impl Clone for ContextSessionStateV1
Source§impl Debug for ContextSessionStateV1
impl Debug for ContextSessionStateV1
Source§impl<'de> Deserialize<'de> for ContextSessionStateV1
impl<'de> Deserialize<'de> for ContextSessionStateV1
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 ContextSessionStateV1
Source§impl PartialEq for ContextSessionStateV1
impl PartialEq for ContextSessionStateV1
Source§impl Serialize for ContextSessionStateV1
impl Serialize for ContextSessionStateV1
impl StructuralPartialEq for ContextSessionStateV1
Auto Trait Implementations§
impl Freeze for ContextSessionStateV1
impl RefUnwindSafe for ContextSessionStateV1
impl Send for ContextSessionStateV1
impl Sync for ContextSessionStateV1
impl Unpin for ContextSessionStateV1
impl UnsafeUnpin for ContextSessionStateV1
impl UnwindSafe for ContextSessionStateV1
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