Struct spl_governance::state::realm_config::RealmConfigAccount
source · [−]pub struct RealmConfigAccount {
pub account_type: GovernanceAccountType,
pub realm: Pubkey,
pub community_voter_weight_addin: Option<Pubkey>,
pub max_community_voter_weight_addin: Option<Pubkey>,
pub council_voter_weight_addin: Option<Pubkey>,
pub council_max_vote_weight_addin: Option<Pubkey>,
pub reserved: [u8; 128],
}
Expand description
RealmConfig account The account is an optional extension to RealmConfig stored on Realm account
Fields
account_type: GovernanceAccountType
Governance account type
realm: Pubkey
The realm the config belong to
community_voter_weight_addin: Option<Pubkey>
Addin providing voter weights for community token
max_community_voter_weight_addin: Option<Pubkey>
Addin providing max vote weight for community token Note: This field is not implemented in the current version
council_voter_weight_addin: Option<Pubkey>
Addin providing voter weights for council token Note: This field is not implemented in the current version
council_max_vote_weight_addin: Option<Pubkey>
Addin providing max vote weight for council token Note: This field is not implemented in the current version
reserved: [u8; 128]
Reserved
Trait Implementations
Returns max account size or None if max size is not known and actual instance size should be used
impl BorshSchema for RealmConfigAccount where
GovernanceAccountType: BorshSchema,
Pubkey: BorshSchema,
Option<Pubkey>: BorshSchema,
Option<Pubkey>: BorshSchema,
Option<Pubkey>: BorshSchema,
Option<Pubkey>: BorshSchema,
[u8; 128]: BorshSchema,
impl BorshSchema for RealmConfigAccount where
GovernanceAccountType: BorshSchema,
Pubkey: BorshSchema,
Option<Pubkey>: BorshSchema,
Option<Pubkey>: BorshSchema,
Option<Pubkey>: BorshSchema,
Option<Pubkey>: BorshSchema,
[u8; 128]: 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.
Is initialized
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 RealmConfigAccount
impl Send for RealmConfigAccount
impl Sync for RealmConfigAccount
impl Unpin for RealmConfigAccount
impl UnwindSafe for RealmConfigAccount
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more