pub enum CheckpointPolicy {
None,
Before,
After,
BeforeAndAfter,
Terminal,
}Expand description
Enumerates the finite checkpoint policy cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
None
Use this variant when the contract needs to represent none; selecting it has no side effect by itself.
Before
Use this variant when the contract needs to represent before; selecting it has no side effect by itself.
After
Use this variant when the contract needs to represent after; selecting it has no side effect by itself.
BeforeAndAfter
Use this variant when the contract needs to represent before and after; selecting it has no side effect by itself.
Terminal
Use this variant when the contract needs to represent terminal; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for CheckpointPolicy
impl Clone for CheckpointPolicy
Source§fn clone(&self) -> CheckpointPolicy
fn clone(&self) -> CheckpointPolicy
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 moreimpl Copy for CheckpointPolicy
Source§impl Debug for CheckpointPolicy
impl Debug for CheckpointPolicy
Source§impl<'de> Deserialize<'de> for CheckpointPolicy
impl<'de> Deserialize<'de> for CheckpointPolicy
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 CheckpointPolicy
Source§impl Hash for CheckpointPolicy
impl Hash for CheckpointPolicy
Source§impl PartialEq for CheckpointPolicy
impl PartialEq for CheckpointPolicy
Source§fn eq(&self, other: &CheckpointPolicy) -> bool
fn eq(&self, other: &CheckpointPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CheckpointPolicy
impl Serialize for CheckpointPolicy
impl StructuralPartialEq for CheckpointPolicy
Auto Trait Implementations§
impl Freeze for CheckpointPolicy
impl RefUnwindSafe for CheckpointPolicy
impl Send for CheckpointPolicy
impl Sync for CheckpointPolicy
impl Unpin for CheckpointPolicy
impl UnsafeUnpin for CheckpointPolicy
impl UnwindSafe for CheckpointPolicy
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