pub enum SecurityBadge {
Admin = 0,
Minter = 1,
None = 2,
}Expand description
Security badge that can be assigned to an account to grant it certain permissions.
Variants§
Admin = 0
The account is an admin.
Minter = 1
The account is a minter.
None = 2
The account has no special permissions.
Implementations§
Trait Implementations§
Source§impl Clone for SecurityBadge
impl Clone for SecurityBadge
Source§fn clone(&self) -> SecurityBadge
fn clone(&self) -> SecurityBadge
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 SecurityBadge
impl Debug for SecurityBadge
Source§impl FromBytes for SecurityBadge
impl FromBytes for SecurityBadge
Source§impl HasEvents for SecurityBadge
impl HasEvents for SecurityBadge
Source§impl NamedCLTyped for SecurityBadge
impl NamedCLTyped for SecurityBadge
Source§fn ty() -> NamedCLType
fn ty() -> NamedCLType
Returns the NamedCLType of the implementing type.
Source§impl PartialEq for SecurityBadge
impl PartialEq for SecurityBadge
Source§impl SchemaCustomTypes for SecurityBadge
impl SchemaCustomTypes for SecurityBadge
Source§fn schema_types() -> Vec<Option<CustomType>>
fn schema_types() -> Vec<Option<CustomType>>
Returns a vector of optional CustomTypes.
Source§impl ToBytes for SecurityBadge
impl ToBytes for SecurityBadge
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 SecurityBadge
impl SchemaCustomElement for SecurityBadge
impl StructuralPartialEq for SecurityBadge
Auto Trait Implementations§
impl Freeze for SecurityBadge
impl RefUnwindSafe for SecurityBadge
impl Send for SecurityBadge
impl Sync for SecurityBadge
impl Unpin for SecurityBadge
impl UnwindSafe for SecurityBadge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EntrypointArgument for T
impl<T> EntrypointArgument for T
Source§fn is_required() -> bool
fn is_required() -> bool
Returns
true if the argument is required.Source§fn insert_runtime_arg(self, name: &str, args: &mut RuntimeArgs)
fn insert_runtime_arg(self, name: &str, args: &mut RuntimeArgs)
Inserts the argument into the runtime args.
Source§fn unwrap(value: Option<T>, env: &ContractEnv) -> T
fn unwrap(value: Option<T>, env: &ContractEnv) -> T
Unwraps the argument from an Option.
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> SchemaErrors for Twhere
T: SchemaCustomElement,
impl<T> SchemaErrors for Twhere
T: SchemaCustomElement,
Source§impl<T> SchemaEvents for Twhere
T: SchemaCustomElement,
impl<T> SchemaEvents for Twhere
T: SchemaCustomElement,
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more