Struct spl_governance::state::realm::RealmConfigArgs
source · [−]#[repr(C)]pub struct RealmConfigArgs {
pub use_council_mint: bool,
pub min_community_weight_to_create_governance: u64,
pub community_mint_max_vote_weight_source: MintMaxVoteWeightSource,
pub use_community_voter_weight_addin: bool,
pub use_max_community_voter_weight_addin: bool,
}
Expand description
Realm Config instruction args
Fields
use_council_mint: bool
Indicates whether council_mint should be used If yes then council_mint account must also be passed to the instruction
min_community_weight_to_create_governance: u64
Min number of community tokens required to create a governance
community_mint_max_vote_weight_source: MintMaxVoteWeightSource
The source used for community mint max vote weight source
use_community_voter_weight_addin: bool
Indicates whether an external addin program should be used to provide community voters weights If yes then the voters weight program account must be passed to the instruction
use_max_community_voter_weight_addin: bool
Indicates whether an external addin program should be used to provide max voters weight for the community mint If yes then the max voter weight program account must be passed to the instruction
Trait Implementations
sourceimpl BorshDeserialize for RealmConfigArgs where
bool: BorshDeserialize,
u64: BorshDeserialize,
MintMaxVoteWeightSource: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for RealmConfigArgs where
bool: BorshDeserialize,
u64: BorshDeserialize,
MintMaxVoteWeightSource: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
sourceimpl BorshSchema for RealmConfigArgs where
bool: BorshSchema,
u64: BorshSchema,
MintMaxVoteWeightSource: BorshSchema,
bool: BorshSchema,
bool: BorshSchema,
impl BorshSchema for RealmConfigArgs where
bool: BorshSchema,
u64: BorshSchema,
MintMaxVoteWeightSource: BorshSchema,
bool: BorshSchema,
bool: BorshSchema,
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 RealmConfigArgs where
bool: BorshSerialize,
u64: BorshSerialize,
MintMaxVoteWeightSource: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
impl BorshSerialize for RealmConfigArgs where
bool: BorshSerialize,
u64: BorshSerialize,
MintMaxVoteWeightSource: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
sourceimpl Clone for RealmConfigArgs
impl Clone for RealmConfigArgs
sourcefn clone(&self) -> RealmConfigArgs
fn clone(&self) -> RealmConfigArgs
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 RealmConfigArgs
impl Debug for RealmConfigArgs
sourceimpl PartialEq<RealmConfigArgs> for RealmConfigArgs
impl PartialEq<RealmConfigArgs> for RealmConfigArgs
sourcefn eq(&self, other: &RealmConfigArgs) -> bool
fn eq(&self, other: &RealmConfigArgs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RealmConfigArgs) -> bool
fn ne(&self, other: &RealmConfigArgs) -> bool
This method tests for !=
.
impl StructuralPartialEq for RealmConfigArgs
Auto Trait Implementations
impl RefUnwindSafe for RealmConfigArgs
impl Send for RealmConfigArgs
impl Sync for RealmConfigArgs
impl Unpin for RealmConfigArgs
impl UnwindSafe for RealmConfigArgs
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