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: String
§confirmations: i64
§size: u64
§strippedsize: u64
§weight: u64
§height: u64
§version: u64
§version_hex: String
§merkleroot: String
§tx: Vec<GetBlockCommandTransactionResponse>
§time: u64
§mediantime: u64
§nonce: u64
§bits: String
§difficulty: f64
§chainwork: String
§n_tx: u64
§previousblockhash: Option<String>
§nextblockhash: Option<String>
Trait Implementations§
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
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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