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 PartialOrd for BlockTime
impl PartialOrd for BlockTime
impl Eq for BlockTime
impl StructuralPartialEq for BlockTime
Auto Trait Implementations§
impl Freeze for BlockTime
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