pub struct ContextSessionSnapshotV1 {
pub schema_version: u32,
pub identity: SessionIdentityV1,
pub configuration: Option<ContextSessionConfigurationV1>,
pub state: ContextSessionStateV1,
}Expand description
Portable V1 metadata/checkpoint contract for one Context SDK root task.
Fields§
§schema_version: u32§identity: SessionIdentityV1§configuration: Option<ContextSessionConfigurationV1>§state: ContextSessionStateV1Implementations§
Source§impl ContextSessionSnapshotV1
impl ContextSessionSnapshotV1
Sourcepub const SCHEMA_VERSION: u32 = V1_SCHEMA_VERSION
pub const SCHEMA_VERSION: u32 = V1_SCHEMA_VERSION
Schema version represented by this Context SDK session snapshot.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate schema, pin, and lifecycle invariants for a portable snapshot.
Trait Implementations§
Source§impl Clone for ContextSessionSnapshotV1
impl Clone for ContextSessionSnapshotV1
Source§impl Debug for ContextSessionSnapshotV1
impl Debug for ContextSessionSnapshotV1
Source§impl<'de> Deserialize<'de> for ContextSessionSnapshotV1
impl<'de> Deserialize<'de> for ContextSessionSnapshotV1
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 ContextSessionSnapshotV1
Source§impl PartialEq for ContextSessionSnapshotV1
impl PartialEq for ContextSessionSnapshotV1
Source§impl Serialize for ContextSessionSnapshotV1
impl Serialize for ContextSessionSnapshotV1
impl StructuralPartialEq for ContextSessionSnapshotV1
Auto Trait Implementations§
impl Freeze for ContextSessionSnapshotV1
impl RefUnwindSafe for ContextSessionSnapshotV1
impl Send for ContextSessionSnapshotV1
impl Sync for ContextSessionSnapshotV1
impl Unpin for ContextSessionSnapshotV1
impl UnsafeUnpin for ContextSessionSnapshotV1
impl UnwindSafe for ContextSessionSnapshotV1
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