Enum secret_toolkit_snip721::handle::AccessLevel
source · [−]pub enum AccessLevel {
ApproveToken,
All,
RevokeToken,
None,
}
Expand description
permission access level
Variants
ApproveToken
approve permission only for the specified token
All
grant permission for all tokens
RevokeToken
revoke permission only for the specified token
None
remove all permissions for this address
Trait Implementations
sourceimpl Clone for AccessLevel
impl Clone for AccessLevel
sourcefn clone(&self) -> AccessLevel
fn clone(&self) -> AccessLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccessLevel
impl Debug for AccessLevel
sourceimpl<'de> Deserialize<'de> for AccessLevel
impl<'de> Deserialize<'de> for AccessLevel
sourcefn 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
sourceimpl JsonSchema for AccessLevel
impl JsonSchema for AccessLevel
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl PartialEq<AccessLevel> for AccessLevel
impl PartialEq<AccessLevel> for AccessLevel
sourceimpl Serialize for AccessLevel
impl Serialize for AccessLevel
impl StructuralPartialEq for AccessLevel
Auto Trait Implementations
impl RefUnwindSafe for AccessLevel
impl Send for AccessLevel
impl Sync for AccessLevel
impl Unpin for AccessLevel
impl UnwindSafe for AccessLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more