Struct spl_governance::state::realm::RealmConfig
source · [−]#[repr(C)]pub struct RealmConfig {
pub use_community_voter_weight_addin: bool,
pub use_max_community_voter_weight_addin: bool,
pub reserved: [u8; 6],
pub min_community_weight_to_create_governance: u64,
pub community_mint_max_vote_weight_source: MintMaxVoteWeightSource,
pub council_mint: Option<Pubkey>,
}
Expand description
Realm Config defining Realm parameters.
Fields
use_community_voter_weight_addin: bool
Indicates whether an external addin program should be used to provide voters weights for the community mint
use_max_community_voter_weight_addin: bool
Indicates whether an external addin program should be used to provide max voter weight for the community mint
reserved: [u8; 6]
Reserved space for future versions
min_community_weight_to_create_governance: u64
Min number of voter’s community weight required to create a governance
community_mint_max_vote_weight_source: MintMaxVoteWeightSource
The source used for community mint max vote weight source
council_mint: Option<Pubkey>
Optional council mint
Trait Implementations
impl BorshSchema for RealmConfig where
bool: BorshSchema,
bool: BorshSchema,
[u8; 6]: BorshSchema,
u64: BorshSchema,
MintMaxVoteWeightSource: BorshSchema,
Option<Pubkey>: BorshSchema,
impl BorshSchema for RealmConfig where
bool: BorshSchema,
bool: BorshSchema,
[u8; 6]: BorshSchema,
u64: BorshSchema,
MintMaxVoteWeightSource: BorshSchema,
Option<Pubkey>: BorshSchema,
Get the name of the type without brackets.
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
fn 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.
impl BorshSerialize for RealmConfig where
bool: BorshSerialize,
bool: BorshSerialize,
[u8; 6]: BorshSerialize,
u64: BorshSerialize,
MintMaxVoteWeightSource: BorshSerialize,
Option<Pubkey>: BorshSerialize,
impl BorshSerialize for RealmConfig where
bool: BorshSerialize,
bool: BorshSerialize,
[u8; 6]: BorshSerialize,
u64: BorshSerialize,
MintMaxVoteWeightSource: BorshSerialize,
Option<Pubkey>: BorshSerialize,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RealmConfig
impl Send for RealmConfig
impl Sync for RealmConfig
impl Unpin for RealmConfig
impl UnwindSafe for RealmConfig
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more