Enum solana_sdk::vote_program::VoteInstruction
source · pub enum VoteInstruction {
RegisterAccount,
NewVote(Vote),
}
Variants
RegisterAccount
Register a new “vote account” to represent a particular validator in the Vote Contract, and initialize the VoteState for this “vote account”
- Transaction::keys[0] - the validator id
- Transaction::keys[1] - the new “vote account” to be associated with the validator identified by keys[0] for voting
NewVote(Vote)
Trait Implementations
sourceimpl Clone for VoteInstruction
impl Clone for VoteInstruction
sourcefn clone(&self) -> VoteInstruction
fn clone(&self) -> VoteInstruction
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 moresourceimpl Debug for VoteInstruction
impl Debug for VoteInstruction
sourceimpl<'de> Deserialize<'de> for VoteInstruction
impl<'de> Deserialize<'de> for VoteInstruction
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<VoteInstruction> for VoteInstruction
impl PartialEq<VoteInstruction> for VoteInstruction
sourcefn eq(&self, other: &VoteInstruction) -> bool
fn eq(&self, other: &VoteInstruction) -> bool
sourceimpl Serialize for VoteInstruction
impl Serialize for VoteInstruction
impl Eq for VoteInstruction
impl StructuralEq for VoteInstruction
impl StructuralPartialEq for VoteInstruction
Auto Trait Implementations
impl RefUnwindSafe for VoteInstruction
impl Send for VoteInstruction
impl Sync for VoteInstruction
impl Unpin for VoteInstruction
impl UnwindSafe for VoteInstruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more