pub struct StateContract {
pub scope: StateScope,
pub max_bytes: u64,
pub checkpoint: CheckpointContract,
}Fields§
§scope: StateScope§max_bytes: u64§checkpoint: CheckpointContractImplementations§
Source§impl StateContract
impl StateContract
pub const fn stateless() -> Self
pub const fn checkpointable(&self) -> bool
Trait Implementations§
Source§impl Clone for StateContract
impl Clone for StateContract
Source§fn clone(&self) -> StateContract
fn clone(&self) -> StateContract
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 Debug for StateContract
impl Debug for StateContract
Source§impl<'de> Deserialize<'de> for StateContract
impl<'de> Deserialize<'de> for StateContract
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 StateContract
Source§impl PartialEq for StateContract
impl PartialEq for StateContract
Source§impl Serialize for StateContract
impl Serialize for StateContract
impl StructuralPartialEq for StateContract
Auto Trait Implementations§
impl Freeze for StateContract
impl RefUnwindSafe for StateContract
impl Send for StateContract
impl Sync for StateContract
impl Unpin for StateContract
impl UnsafeUnpin for StateContract
impl UnwindSafe for StateContract
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