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
sourceimpl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more