[][src]Struct concordium_std::InitContext

pub struct InitContext {
    pub metadata: ChainMetadata,
    pub init_origin: AccountAddress,
}

Chain context accessible to the init methods.

TODO: We could optimize this to be initialized lazily

Fields

metadata: ChainMetadatainit_origin: AccountAddress

Implementations

impl InitContext[src]

pub fn init_origin(&self) -> &AccountAddress[src]

pub fn get_time(&self) -> u64[src]

Get time in milliseconds at the beginning of this block.

Trait Implementations

impl Deserial for InitContext[src]

impl Serial for InitContext[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.