pub struct ChainMetadata {
pub slot_time: SlotTime,
}
Expand description
Chain metadata accessible to both receive and init methods. Information about the chain available to smart contracts.
Fields§
§slot_time: SlotTime
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§impl<'de> Deserialize<'de> for ChainMetadata
impl<'de> Deserialize<'de> for ChainMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serial for ChainMetadata
impl Serial for ChainMetadata
Auto Trait Implementations§
impl Freeze for ChainMetadata
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