[][src]Struct concordium_std::ChainMetadata

pub struct ChainMetadata {
    pub slot_number: u64,
    pub block_height: u64,
    pub finalized_height: u64,
    pub slot_time: u64,
}

Chain metadata accessible to both receive and init methods.

Fields

slot_number: u64block_height: u64finalized_height: u64slot_time: u64

Trait Implementations

impl Deserial for ChainMetadata[src]

impl Serial for ChainMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<A> Serialize for A where
    A: Serial + Deserial
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.