Struct solana_vote_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 ==
.source§impl Serialize for BlockTimestamp
impl Serialize for BlockTimestamp
impl Eq for BlockTimestamp
impl StructuralEq for BlockTimestamp
impl StructuralPartialEq for BlockTimestamp
Auto Trait Implementations§
impl RefUnwindSafe for BlockTimestamp
impl Send for BlockTimestamp
impl Sync for BlockTimestamp
impl Unpin for BlockTimestamp
impl UnwindSafe for BlockTimestamp
Blanket Implementations§
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.