Struct ic_ledger_types::Block
source · pub struct Block {
pub parent_hash: Option<[u8; 32]>,
pub transaction: Transaction,
pub timestamp: Timestamp,
}
Fields§
§parent_hash: Option<[u8; 32]>
The hash of the parent block.
transaction: Transaction
§timestamp: Timestamp
The time at which the ledger constructed the block.
Trait Implementations§
source§impl CandidType for Block
impl CandidType for Block
source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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