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
sourceimpl AccountMaxSize for RealmConfigAccount
impl AccountMaxSize for RealmConfigAccount
sourcefn get_max_size(&self) -> Option<usize>
fn get_max_size(&self) -> Option<usize>
Returns max account size or None if max size is not known and actual instance size should be used
sourceimpl BorshDeserialize for RealmConfigAccount where
GovernanceAccountType: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
[u8; 128]: BorshDeserialize,
impl BorshDeserialize for RealmConfigAccount where
GovernanceAccountType: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
[u8; 128]: BorshDeserialize,
sourceimpl 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,
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 RealmConfigAccount where
GovernanceAccountType: BorshSerialize,
Pubkey: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
[u8; 128]: BorshSerialize,
impl BorshSerialize for RealmConfigAccount where
GovernanceAccountType: BorshSerialize,
Pubkey: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
[u8; 128]: BorshSerialize,
sourceimpl Clone for RealmConfigAccount
impl Clone for RealmConfigAccount
sourcefn clone(&self) -> RealmConfigAccount
fn clone(&self) -> RealmConfigAccount
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 RealmConfigAccount
impl Debug for RealmConfigAccount
sourceimpl IsInitialized for RealmConfigAccount
impl IsInitialized for RealmConfigAccount
sourcefn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
sourceimpl PartialEq<RealmConfigAccount> for RealmConfigAccount
impl PartialEq<RealmConfigAccount> for RealmConfigAccount
sourcefn eq(&self, other: &RealmConfigAccount) -> bool
fn eq(&self, other: &RealmConfigAccount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RealmConfigAccount) -> bool
fn ne(&self, other: &RealmConfigAccount) -> bool
This method tests for !=
.
impl StructuralPartialEq for RealmConfigAccount
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
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