Enum casper_types::OpKind
source · pub enum OpKind {
Read,
Write,
Add,
NoOp,
}
Expand description
The type of operation performed while executing a deploy.
Variants§
Read
A read operation.
Write
A write operation.
Add
An addition.
NoOp
An operation which has no effect.
Trait Implementations§
source§impl<'de> Deserialize<'de> for OpKind
impl<'de> Deserialize<'de> for OpKind
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 PartialEq for OpKind
impl PartialEq for OpKind
source§impl ToBytes for OpKind
impl ToBytes for OpKind
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Copy for OpKind
impl Eq for OpKind
impl StructuralEq for OpKind
impl StructuralPartialEq for OpKind
Auto Trait Implementations§
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnwindSafe for OpKind
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