pub enum VoteTransaction {
Vote(Vote),
VoteStateUpdate(VoteStateUpdate),
}
Variants§
Vote(Vote)
VoteStateUpdate(VoteStateUpdate)
Implementations§
source§impl VoteTransaction
impl VoteTransaction
pub fn slots(&self) -> Vec<Slot> ⓘ
pub fn slot(&self, i: usize) -> Slot
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn hash(&self) -> Hash
pub fn timestamp(&self) -> Option<UnixTimestamp>
pub fn set_timestamp(&mut self, ts: Option<UnixTimestamp>)
pub fn last_voted_slot(&self) -> Option<Slot>
pub fn last_voted_slot_hash(&self) -> Option<(Slot, Hash)>
Trait Implementations§
source§impl AbiEnumVisitor for VoteTransaction
impl AbiEnumVisitor for VoteTransaction
fn visit_for_abi(&self, digester: &mut AbiDigester) -> DigestResult
source§impl AbiExample for VoteTransaction
impl AbiExample for VoteTransaction
source§impl Clone for VoteTransaction
impl Clone for VoteTransaction
source§fn clone(&self) -> VoteTransaction
fn clone(&self) -> VoteTransaction
Returns a copy 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 VoteTransaction
impl Debug for VoteTransaction
source§impl<'de> Deserialize<'de> for VoteTransaction
impl<'de> Deserialize<'de> for VoteTransaction
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 From<Vote> for VoteTransaction
impl From<Vote> for VoteTransaction
source§impl From<VoteStateUpdate> for VoteTransaction
impl From<VoteStateUpdate> for VoteTransaction
source§fn from(vote_state_update: VoteStateUpdate) -> Self
fn from(vote_state_update: VoteStateUpdate) -> Self
Converts to this type from the input type.
source§impl PartialEq<VoteTransaction> for VoteTransaction
impl PartialEq<VoteTransaction> for VoteTransaction
source§fn eq(&self, other: &VoteTransaction) -> bool
fn eq(&self, other: &VoteTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.