Struct govern::VoteSetEvent
source · [−]pub struct VoteSetEvent {
pub governor: Pubkey,
pub proposal: Pubkey,
pub voter: Pubkey,
pub vote: Pubkey,
pub side: u8,
pub weight: u64,
}Expand description
Event called in govern::set_vote.
Fields
governor: PubkeyThe governor.
proposal: PubkeyThe proposal being voted on.
voter: PubkeyThe voter.
vote: PubkeyThe vote.
side: u8The vote side.
weight: u64The vote’s weight.
Trait Implementations
sourceimpl BorshDeserialize for VoteSetEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for VoteSetEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for VoteSetEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u8: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for VoteSetEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u8: BorshSerialize,
u64: BorshSerialize,
sourceimpl Discriminator for VoteSetEvent
impl Discriminator for VoteSetEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations
impl RefUnwindSafe for VoteSetEvent
impl Send for VoteSetEvent
impl Sync for VoteSetEvent
impl Unpin for VoteSetEvent
impl UnwindSafe for VoteSetEvent
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