pub enum StateWriteResultV1 {
Set {
applied: bool,
},
Delete {
removed: u32,
},
Expire {
changed: bool,
},
Persist {
changed: bool,
},
MultiSet {
written: u32,
},
Increment {
value: i64,
},
HashSet {
fields_added: u32,
},
}Variants§
Implementations§
Source§impl StateWriteResultV1
impl StateWriteResultV1
pub fn validate(&self) -> Result<(), StateContractError>
Trait Implementations§
Source§impl Clone for StateWriteResultV1
impl Clone for StateWriteResultV1
Source§impl Debug for StateWriteResultV1
impl Debug for StateWriteResultV1
Source§impl<'de> Deserialize<'de> for StateWriteResultV1
impl<'de> Deserialize<'de> for StateWriteResultV1
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 StateWriteResultV1
Source§impl PartialEq for StateWriteResultV1
impl PartialEq for StateWriteResultV1
Source§impl Serialize for StateWriteResultV1
impl Serialize for StateWriteResultV1
impl StructuralPartialEq for StateWriteResultV1
Auto Trait Implementations§
impl Freeze for StateWriteResultV1
impl RefUnwindSafe for StateWriteResultV1
impl Send for StateWriteResultV1
impl Sync for StateWriteResultV1
impl Unpin for StateWriteResultV1
impl UnsafeUnpin for StateWriteResultV1
impl UnwindSafe for StateWriteResultV1
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