Struct solana_sdk::vote::state::Vote
source · pub struct Vote {
pub slots: Vec<u64, Global>,
pub hash: Hash,
pub timestamp: Option<i64>,
}
Fields§
§slots: Vec<u64, Global>
A stack of votes starting with the oldest vote
hash: Hash
signature of the bank’s state at the last slot
timestamp: Option<i64>
processing timestamp of last slot
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Vote
impl<'de> Deserialize<'de> for Vote
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Vote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Vote, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Vote> for Vote
impl PartialEq<Vote> for Vote
source§impl Serialize for Vote
impl Serialize for Vote
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more