Struct solana_program::vote::state::BlockTimestamp
source · pub struct BlockTimestamp {
pub slot: Slot,
pub timestamp: UnixTimestamp,
}
Fields§
§slot: Slot
§timestamp: UnixTimestamp
Trait Implementations§
source§impl AbiExample for BlockTimestamp
impl AbiExample for BlockTimestamp
source§impl Clone for BlockTimestamp
impl Clone for BlockTimestamp
source§fn clone(&self) -> BlockTimestamp
fn clone(&self) -> BlockTimestamp
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 BlockTimestamp
impl Debug for BlockTimestamp
source§impl Default for BlockTimestamp
impl Default for BlockTimestamp
source§fn default() -> BlockTimestamp
fn default() -> BlockTimestamp
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockTimestamp
impl<'de> Deserialize<'de> for BlockTimestamp
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<BlockTimestamp> for BlockTimestamp
impl PartialEq<BlockTimestamp> for BlockTimestamp
source§fn eq(&self, other: &BlockTimestamp) -> bool
fn eq(&self, other: &BlockTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.