Struct midgard_rs::HeightStamp
source · pub struct HeightStamp { /* private fields */ }Implementations§
source§impl HeightStamp
impl HeightStamp
pub const fn get_height(&self) -> u64
pub const fn get_timestamp(&self) -> DateTime<Utc>
Trait Implementations§
source§impl Clone for HeightStamp
impl Clone for HeightStamp
source§fn clone(&self) -> HeightStamp
fn clone(&self) -> HeightStamp
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 HeightStamp
impl Debug for HeightStamp
source§impl<'de> Deserialize<'de> for HeightStamp
impl<'de> Deserialize<'de> for HeightStamp
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
Auto Trait Implementations§
impl Freeze for HeightStamp
impl RefUnwindSafe for HeightStamp
impl Send for HeightStamp
impl Sync for HeightStamp
impl Unpin for HeightStamp
impl UnwindSafe for HeightStamp
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