Enum casper_types::EntryPointType
source · #[repr(u8)]pub enum EntryPointType {
Session = 0,
Contract = 1,
}
Expand description
Context of method execution
Variants§
Trait Implementations§
source§impl Clone for EntryPointType
impl Clone for EntryPointType
source§fn clone(&self) -> EntryPointType
fn clone(&self) -> EntryPointType
Returns a copy 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 Debug for EntryPointType
impl Debug for EntryPointType
source§impl<'de> Deserialize<'de> for EntryPointType
impl<'de> Deserialize<'de> for EntryPointType
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 FromBytes for EntryPointType
impl FromBytes for EntryPointType
source§impl PartialEq for EntryPointType
impl PartialEq for EntryPointType
source§fn eq(&self, other: &EntryPointType) -> bool
fn eq(&self, other: &EntryPointType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EntryPointType
impl Serialize for EntryPointType
source§impl ToBytes for EntryPointType
impl ToBytes for EntryPointType
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 EntryPointType
impl Eq for EntryPointType
impl StructuralEq for EntryPointType
impl StructuralPartialEq for EntryPointType
Auto Trait Implementations§
impl RefUnwindSafe for EntryPointType
impl Send for EntryPointType
impl Sync for EntryPointType
impl Unpin for EntryPointType
impl UnwindSafe for EntryPointType
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