Enum casper_types::EntryPointAccess
source · pub enum EntryPointAccess {
Public,
Groups(Vec<Group>),
}
Expand description
Enum describing the possible access control options for a contract entry point (method).
Variants§
Public
Anyone can call this method (no access controls).
Groups(Vec<Group>)
Only users from the listed groups may call this method. Note: if the list is empty then this method is not callable from outside the contract.
Implementations§
Trait Implementations§
source§impl Clone for EntryPointAccess
impl Clone for EntryPointAccess
source§fn clone(&self) -> EntryPointAccess
fn clone(&self) -> EntryPointAccess
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 EntryPointAccess
impl Debug for EntryPointAccess
source§impl<'de> Deserialize<'de> for EntryPointAccess
impl<'de> Deserialize<'de> for EntryPointAccess
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 EntryPointAccess
impl FromBytes for EntryPointAccess
source§impl PartialEq for EntryPointAccess
impl PartialEq for EntryPointAccess
source§fn eq(&self, other: &EntryPointAccess) -> bool
fn eq(&self, other: &EntryPointAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EntryPointAccess
impl Serialize for EntryPointAccess
source§impl ToBytes for EntryPointAccess
impl ToBytes for EntryPointAccess
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 Eq for EntryPointAccess
impl StructuralEq for EntryPointAccess
impl StructuralPartialEq for EntryPointAccess
Auto Trait Implementations§
impl RefUnwindSafe for EntryPointAccess
impl Send for EntryPointAccess
impl Sync for EntryPointAccess
impl Unpin for EntryPointAccess
impl UnwindSafe for EntryPointAccess
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