Enum solana_gateway::state::GatewayTokenState
source · [−]pub enum GatewayTokenState {
Active,
Frozen,
Revoked,
}
Expand description
Enum representing the states that a gateway token can be in.
Variants
Active
Valid, non-frozen token. Note - a token may be active but have passed its expire_time.
Frozen
Temporarily paused token.
Revoked
A token that has been revoked by the gatekeeper network.
Implementations
sourceimpl GatewayTokenState
impl GatewayTokenState
pub const ALL_STATES: &'static [GatewayTokenState] = &[Self::Active, Self::Frozen, Self::Revoked]
Trait Implementations
sourceimpl BorshDeserialize for GatewayTokenState
impl BorshDeserialize for GatewayTokenState
sourceimpl BorshSchema for GatewayTokenState
impl BorshSchema for GatewayTokenState
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
sourcefn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for GatewayTokenState
impl BorshSerialize for GatewayTokenState
sourceimpl Clone for GatewayTokenState
impl Clone for GatewayTokenState
sourcefn clone(&self) -> GatewayTokenState
fn clone(&self) -> GatewayTokenState
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 GatewayTokenState
impl Debug for GatewayTokenState
sourceimpl Default for GatewayTokenState
impl Default for GatewayTokenState
impl Copy for GatewayTokenState
impl StructuralPartialEq for GatewayTokenState
Auto Trait Implementations
impl RefUnwindSafe for GatewayTokenState
impl Send for GatewayTokenState
impl Sync for GatewayTokenState
impl Unpin for GatewayTokenState
impl UnwindSafe for GatewayTokenState
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
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
impl<T> Pointable for T
impl<T> Pointable for T
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more