pub struct BlockTime {
pub height: u32,
pub timestamp: u64,
}
Expand description
Block height and timestamp of a block
Fields§
§height: u32
confirmation block height
timestamp: u64
confirmation block timestamp
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlockTime
impl<'de> Deserialize<'de> for BlockTime
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 Ord for BlockTime
impl Ord for BlockTime
source§impl PartialEq for BlockTime
impl PartialEq for BlockTime
source§impl PartialOrd for BlockTime
impl PartialOrd for BlockTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BlockTime
impl StructuralEq for BlockTime
impl StructuralPartialEq for BlockTime
Auto Trait Implementations§
impl RefUnwindSafe for BlockTime
impl Send for BlockTime
impl Sync for BlockTime
impl Unpin for BlockTime
impl UnwindSafe for BlockTime
Blanket Implementations§
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