Enum switchboard_solana::attestation_program::accounts::attestation_permission::SwitchboardAttestationPermission
source · pub enum SwitchboardAttestationPermission {
None = 0,
PermitNodeheartbeat = 1,
PermitQueueUsage = 2,
}
Variants§
Trait Implementations§
source§impl BorshDeserialize for SwitchboardAttestationPermission
impl BorshDeserialize for SwitchboardAttestationPermission
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 Clone for SwitchboardAttestationPermission
impl Clone for SwitchboardAttestationPermission
source§fn clone(&self) -> SwitchboardAttestationPermission
fn clone(&self) -> SwitchboardAttestationPermission
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 Default for SwitchboardAttestationPermission
impl Default for SwitchboardAttestationPermission
source§fn default() -> SwitchboardAttestationPermission
fn default() -> SwitchboardAttestationPermission
Returns the “default value” for a type. Read more
source§impl From<SwitchboardAttestationPermission> for u32
impl From<SwitchboardAttestationPermission> for u32
source§fn from(value: SwitchboardAttestationPermission) -> Self
fn from(value: SwitchboardAttestationPermission) -> Self
Converts to this type from the input type.
source§impl From<u32> for SwitchboardAttestationPermission
impl From<u32> for SwitchboardAttestationPermission
source§impl PartialEq for SwitchboardAttestationPermission
impl PartialEq for SwitchboardAttestationPermission
source§fn eq(&self, other: &SwitchboardAttestationPermission) -> bool
fn eq(&self, other: &SwitchboardAttestationPermission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SwitchboardAttestationPermission
impl Eq for SwitchboardAttestationPermission
impl StructuralPartialEq for SwitchboardAttestationPermission
Auto Trait Implementations§
impl RefUnwindSafe for SwitchboardAttestationPermission
impl Send for SwitchboardAttestationPermission
impl Sync for SwitchboardAttestationPermission
impl Unpin for SwitchboardAttestationPermission
impl UnwindSafe for SwitchboardAttestationPermission
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> 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.