pub struct ChainInfo {
pub chain: String,
pub blocks: u32,
pub headers: u32,
pub bestblockhash: String,
pub difficulty: f64,
pub mediantime: u32,
pub verificationprogress: f64,
pub chainwork: String,
pub pruned: bool,
pub pruneheight: u32,
pub softforks: HashMap<String, Softfork>,
pub warnings: String,
}Fields§
§chain: String§blocks: u32§headers: u32§bestblockhash: String§difficulty: f64§mediantime: u32§verificationprogress: f64§chainwork: String§pruned: bool§pruneheight: u32§softforks: HashMap<String, Softfork>§warnings: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for ChainInfo
impl<'de> Deserialize<'de> for ChainInfo
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 ChainInfo
impl RefUnwindSafe for ChainInfo
impl Send for ChainInfo
impl Sync for ChainInfo
impl Unpin for ChainInfo
impl UnwindSafe for ChainInfo
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