pub struct Checkpoint<S>where
S: StateSchema,{
pub thread_id: String,
pub state: GraphState<S>,
pub step: u64,
pub node: String,
pub queue: Vec<(String, u64)>,
pub created_at: String,
}Fields§
§thread_id: String§state: GraphState<S>§step: u64§node: String§queue: Vec<(String, u64)>§created_at: StringImplementations§
Source§impl<S> Checkpoint<S>where
S: StateSchema,
impl<S> Checkpoint<S>where
S: StateSchema,
pub fn new( thread_id: String, state: GraphState<S>, step: u64, node: String, queue: Vec<(String, u64)>, ) -> Checkpoint<S>
Trait Implementations§
Source§impl<S> Clone for Checkpoint<S>where
S: Clone + StateSchema,
impl<S> Clone for Checkpoint<S>where
S: Clone + StateSchema,
Source§fn clone(&self) -> Checkpoint<S>
fn clone(&self) -> Checkpoint<S>
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<S> Debug for Checkpoint<S>where
S: Debug + StateSchema,
impl<S> Debug for Checkpoint<S>where
S: Debug + StateSchema,
Source§impl<'de, S> Deserialize<'de> for Checkpoint<S>where
S: StateSchema,
impl<'de, S> Deserialize<'de> for Checkpoint<S>where
S: StateSchema,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Checkpoint<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Checkpoint<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S> PartialEq for Checkpoint<S>where
S: PartialEq + StateSchema,
impl<S> PartialEq for Checkpoint<S>where
S: PartialEq + StateSchema,
Source§impl<S> Serialize for Checkpoint<S>where
S: StateSchema,
impl<S> Serialize for Checkpoint<S>where
S: StateSchema,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<S> StructuralPartialEq for Checkpoint<S>where
S: StateSchema,
Auto Trait Implementations§
impl<S> Freeze for Checkpoint<S>where
S: Freeze,
impl<S> RefUnwindSafe for Checkpoint<S>where
S: RefUnwindSafe,
impl<S> Send for Checkpoint<S>
impl<S> Sync for Checkpoint<S>
impl<S> Unpin for Checkpoint<S>where
S: Unpin,
impl<S> UnsafeUnpin for Checkpoint<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Checkpoint<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