pub enum VoteInstruction {
InitializeAccount(VoteInit),
Authorize(Pubkey, VoteAuthorize),
Vote(Vote),
Withdraw(u64),
UpdateValidatorIdentity,
UpdateCommission(u8),
VoteSwitch(Vote, Hash),
AuthorizeChecked(VoteAuthorize),
}Variants§
InitializeAccount(VoteInit)
Initialize a vote account
§Account references
[WRITE]Uninitialized vote account[]Rent sysvar[]Clock sysvar[SIGNER]New validator identity (node_pubkey)
Authorize(Pubkey, VoteAuthorize)
Authorize a key to send votes or issue a withdrawal
§Account references
[WRITE]Vote account to be updated with the Pubkey for authorization[]Clock sysvar[SIGNER]Vote or withdraw authority
Vote(Vote)
A Vote instruction with recent votes
§Account references
[WRITE]Vote account to vote with[]Slot hashes sysvar[]Clock sysvar[SIGNER]Vote authority
Withdraw(u64)
Withdraw some amount of funds
§Account references
[WRITE]Vote account to withdraw from[WRITE]Recipient account[SIGNER]Withdraw authority
UpdateValidatorIdentity
Update the vote account’s validator identity (node_pubkey)
§Account references
[WRITE]Vote account to be updated with the given authority public key[SIGNER]New validator identity (node_pubkey)[SIGNER]Withdraw authority
UpdateCommission(u8)
Update the commission for the vote account
§Account references
[WRITE]Vote account to be updated[SIGNER]Withdraw authority
VoteSwitch(Vote, Hash)
A Vote instruction with recent votes
§Account references
[WRITE]Vote account to vote with[]Slot hashes sysvar[]Clock sysvar[SIGNER]Vote authority
AuthorizeChecked(VoteAuthorize)
Authorize a key to send votes or issue a withdrawal
This instruction behaves like Authorize with the additional requirement that the new vote
or withdraw authority must also be a signer.
§Account references
[WRITE]Vote account to be updated with the Pubkey for authorization[]Clock sysvar[SIGNER]Vote or withdraw authority[SIGNER]New vote or withdraw authority
Trait Implementations§
Source§impl Clone for VoteInstruction
impl Clone for VoteInstruction
Source§fn clone(&self) -> VoteInstruction
fn clone(&self) -> VoteInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoteInstruction
impl Debug for VoteInstruction
Source§impl<'de> Deserialize<'de> for VoteInstruction
impl<'de> Deserialize<'de> for VoteInstruction
Source§fn 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
Source§impl PartialEq for VoteInstruction
impl PartialEq for VoteInstruction
Source§impl Serialize for VoteInstruction
impl Serialize for VoteInstruction
impl Eq for VoteInstruction
impl StructuralPartialEq for VoteInstruction
Auto Trait Implementations§
impl Freeze for VoteInstruction
impl RefUnwindSafe for VoteInstruction
impl Send for VoteInstruction
impl Sync for VoteInstruction
impl Unpin for VoteInstruction
impl UnwindSafe for VoteInstruction
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more