#[repr(u8)]pub enum ResourceLevel {
None = 0,
Authority = 1,
Function = 2,
Queue = 3,
}
Expand description
An enum representing a heirarchy of resources that can modify a field.
Variants§
None = 0
Authority = 1
The resource’s authority has set this value.
Function = 2
The resource function’s authority has set this value.
Queue = 3
The resource queue’s authority has set this value.
Implementations§
source§impl ResourceLevel
impl ResourceLevel
Trait Implementations§
source§impl BorshDeserialize for ResourceLevel
impl BorshDeserialize for ResourceLevel
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for ResourceLevel
impl BorshSerialize for ResourceLevel
source§impl Clone for ResourceLevel
impl Clone for ResourceLevel
source§fn clone(&self) -> ResourceLevel
fn clone(&self) -> ResourceLevel
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 ResourceLevel
impl Debug for ResourceLevel
source§impl Default for ResourceLevel
impl Default for ResourceLevel
source§fn default() -> ResourceLevel
fn default() -> ResourceLevel
Returns the “default value” for a type. Read more
source§impl EnumExt for ResourceLevel
impl EnumExt for ResourceLevel
source§impl From<ResourceLevel> for bool
impl From<ResourceLevel> for bool
source§fn from(value: ResourceLevel) -> Self
fn from(value: ResourceLevel) -> Self
Converts to this type from the input type.
source§impl From<ResourceLevel> for u8
impl From<ResourceLevel> for u8
source§fn from(value: ResourceLevel) -> Self
fn from(value: ResourceLevel) -> Self
Converts to this type from the input type.
source§impl From<u8> for ResourceLevel
impl From<u8> for ResourceLevel
source§impl Ord for ResourceLevel
impl Ord for ResourceLevel
source§impl PartialEq for ResourceLevel
impl PartialEq for ResourceLevel
source§fn eq(&self, other: &ResourceLevel) -> bool
fn eq(&self, other: &ResourceLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResourceLevel
impl PartialOrd for ResourceLevel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Space for ResourceLevel
impl Space for ResourceLevel
const INIT_SPACE: usize = 1usize
impl Copy for ResourceLevel
impl Eq for ResourceLevel
impl StructuralPartialEq for ResourceLevel
Auto Trait Implementations§
impl RefUnwindSafe for ResourceLevel
impl Send for ResourceLevel
impl Sync for ResourceLevel
impl Unpin for ResourceLevel
impl UnwindSafe for ResourceLevel
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.