pub struct Block {
Show 19 fields pub hash: String, pub confirmations: i64, pub size: u64, pub strippedsize: u64, pub weight: u64, pub height: u64, pub version: u64, pub version_hex: String, pub merkleroot: String, pub tx: Vec<GetBlockCommandTransactionResponse>, pub time: u64, pub mediantime: u64, pub nonce: u64, pub bits: String, pub difficulty: f64, pub chainwork: String, pub n_tx: u64, pub previousblockhash: Option<String>, pub nextblockhash: Option<String>,
}

Fields

hash: Stringconfirmations: i64size: u64strippedsize: u64weight: u64height: u64version: u64version_hex: Stringmerkleroot: Stringtx: Vec<GetBlockCommandTransactionResponse>time: u64mediantime: u64nonce: u64bits: Stringdifficulty: f64chainwork: Stringn_tx: u64previousblockhash: Option<String>nextblockhash: Option<String>

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.