Struct concordium_std::ChainMetadata
source · pub struct ChainMetadata {
pub slot_time: Timestamp,
}
Expand description
Chain metadata accessible to both receive and init methods. Information about the chain available to smart contracts.
Fields§
§slot_time: Timestamp
The objective (i.e., the entire network agrees on it) time of the block in whose context the smart contract is being executed.
Trait Implementations§
source§impl Clone for ChainMetadata
impl Clone for ChainMetadata
source§fn clone(&self) -> ChainMetadata
fn clone(&self) -> ChainMetadata
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 ChainMetadata
impl Debug for ChainMetadata
source§impl Deserial for ChainMetadata
impl Deserial for ChainMetadata
source§fn deserial<R>(source: &mut R) -> Result<ChainMetadata, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<ChainMetadata, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
Auto Trait Implementations§
impl RefUnwindSafe for ChainMetadata
impl Send for ChainMetadata
impl Sync for ChainMetadata
impl Unpin for ChainMetadata
impl UnwindSafe for ChainMetadata
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
source§impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.