Struct spl_governance::state::legacy::VoteRecordV1
source · [−]pub struct VoteRecordV1 {
pub account_type: GovernanceAccountType,
pub proposal: Pubkey,
pub governing_token_owner: Pubkey,
pub is_relinquished: bool,
pub vote_weight: VoteWeightV1,
}
Expand description
Proposal VoteRecord
Fields
account_type: GovernanceAccountType
Governance account type
proposal: Pubkey
Proposal account
governing_token_owner: Pubkey
The user who casted this vote This is the Governing Token Owner who deposited governing tokens into the Realm
is_relinquished: bool
Indicates whether the vote was relinquished by voter
vote_weight: VoteWeightV1
Voter’s vote: Yes/No and amount
Trait Implementations
impl BorshSchema for VoteRecordV1 where
GovernanceAccountType: BorshSchema,
Pubkey: BorshSchema,
Pubkey: BorshSchema,
bool: BorshSchema,
VoteWeightV1: BorshSchema,
impl BorshSchema for VoteRecordV1 where
GovernanceAccountType: BorshSchema,
Pubkey: BorshSchema,
Pubkey: BorshSchema,
bool: BorshSchema,
VoteWeightV1: 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 VoteRecordV1
impl Send for VoteRecordV1
impl Sync for VoteRecordV1
impl Unpin for VoteRecordV1
impl UnwindSafe for VoteRecordV1
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more