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.