pub struct CheckpointData<S: StateSchema> {
pub id: String,
pub state: S,
pub timestamp: i64,
pub metadata: HashMap<String, Value>,
}Expand description
Checkpoint data structure
Fields§
§id: String§state: S§timestamp: i64§metadata: HashMap<String, Value>Implementations§
Source§impl<S: StateSchema> CheckpointData<S>
impl<S: StateSchema> CheckpointData<S>
Trait Implementations§
Source§impl<S: Clone + StateSchema> Clone for CheckpointData<S>
impl<S: Clone + StateSchema> Clone for CheckpointData<S>
Source§fn clone(&self) -> CheckpointData<S>
fn clone(&self) -> CheckpointData<S>
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<S: Debug + StateSchema> Debug for CheckpointData<S>
impl<S: Debug + StateSchema> Debug for CheckpointData<S>
Source§impl<'de, S> Deserialize<'de> for CheckpointData<S>where
S: StateSchema,
impl<'de, S> Deserialize<'de> for CheckpointData<S>where
S: StateSchema,
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<S> Serialize for CheckpointData<S>where
S: StateSchema,
impl<S> Serialize for CheckpointData<S>where
S: StateSchema,
Auto Trait Implementations§
impl<S> Freeze for CheckpointData<S>where
S: Freeze,
impl<S> RefUnwindSafe for CheckpointData<S>where
S: RefUnwindSafe,
impl<S> Send for CheckpointData<S>
impl<S> Sync for CheckpointData<S>
impl<S> Unpin for CheckpointData<S>where
S: Unpin,
impl<S> UnsafeUnpin for CheckpointData<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for CheckpointData<S>where
S: UnwindSafe,
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