[−][src]Struct concordium_std::InitContext
Chain context accessible to the init methods.
TODO: We could optimize this to be initialized lazily
Fields
metadata: ChainMetadatainit_origin: AccountAddressImplementations
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]
pub fn deserial<R>(source: &mut R) -> Result<InitContext, ParseError> where
R: Read, [src]
R: Read,
impl Serial for InitContext[src]
Auto Trait Implementations
impl RefUnwindSafe for InitContext
impl Send for InitContext
impl Sync for InitContext
impl Unpin for InitContext
impl UnwindSafe for InitContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<A> Serialize for A where
A: Serial + Deserial, [src]
A: Serial + Deserial,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,