Enum casper_types::system::SystemContractType
source · pub enum SystemContractType {
Mint,
HandlePayment,
StandardPayment,
Auction,
}Expand description
System contract types.
Used by converting to a u32 and passing as the system_contract_index argument of
ext_ffi::casper_get_system_contract().
Variants§
Mint
Mint contract.
HandlePayment
Handle Payment contract.
StandardPayment
Standard Payment contract.
Auction
Auction contract.
Implementations§
source§impl SystemContractType
impl SystemContractType
sourcepub fn contract_name(&self) -> String
pub fn contract_name(&self) -> String
Returns the name of the system contract.
sourcepub fn contract_entry_points(&self) -> EntryPoints
pub fn contract_entry_points(&self) -> EntryPoints
Returns the entrypoint of the system contract.
Trait Implementations§
source§impl Clone for SystemContractType
impl Clone for SystemContractType
source§fn clone(&self) -> SystemContractType
fn clone(&self) -> SystemContractType
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 SystemContractType
impl Debug for SystemContractType
source§impl Display for SystemContractType
impl Display for SystemContractType
source§impl From<SystemContractType> for u32
impl From<SystemContractType> for u32
source§fn from(system_contract_type: SystemContractType) -> u32
fn from(system_contract_type: SystemContractType) -> u32
Converts to this type from the input type.
source§impl PartialEq for SystemContractType
impl PartialEq for SystemContractType
source§fn eq(&self, other: &SystemContractType) -> bool
fn eq(&self, other: &SystemContractType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SystemContractType
impl Eq for SystemContractType
impl StructuralEq for SystemContractType
impl StructuralPartialEq for SystemContractType
Auto Trait Implementations§
impl RefUnwindSafe for SystemContractType
impl Send for SystemContractType
impl Sync for SystemContractType
impl Unpin for SystemContractType
impl UnwindSafe for SystemContractType
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