Enum spl_governance::state::realm::SetRealmAuthorityAction
source · [−]pub enum SetRealmAuthorityAction {
SetUnchecked,
SetChecked,
Remove,
}
Expand description
SetRealmAuthority instruction action
Variants
SetUnchecked
Sets realm authority without any checks Uncheck option allows to set the realm authority to non governance accounts
SetChecked
Sets realm authority and checks the new new authority is one of the realm’s governances
Remove
Removes realm authority
Trait Implementations
sourceimpl BorshSchema for SetRealmAuthorityAction
impl BorshSchema for SetRealmAuthorityAction
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 Clone for SetRealmAuthorityAction
impl Clone for SetRealmAuthorityAction
sourcefn clone(&self) -> SetRealmAuthorityAction
fn clone(&self) -> SetRealmAuthorityAction
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 SetRealmAuthorityAction
impl Debug for SetRealmAuthorityAction
impl StructuralPartialEq for SetRealmAuthorityAction
Auto Trait Implementations
impl RefUnwindSafe for SetRealmAuthorityAction
impl Send for SetRealmAuthorityAction
impl Sync for SetRealmAuthorityAction
impl Unpin for SetRealmAuthorityAction
impl UnwindSafe for SetRealmAuthorityAction
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more