pub struct NextBlockInfo {
pub height: u64,
pub bits: CompactTarget,
pub difficulty: f64,
pub target: Target,
}Expand description
Represents the next block information. Part of getmininginfo.
Fields§
§height: u64The next height.
bits: CompactTargetThe next nBits.
difficulty: f64The next difficulty.
target: TargetThe next target.
Trait Implementations§
Source§impl Clone for NextBlockInfo
impl Clone for NextBlockInfo
Source§fn clone(&self) -> NextBlockInfo
fn clone(&self) -> NextBlockInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NextBlockInfo
impl Debug for NextBlockInfo
Source§impl<'de> Deserialize<'de> for NextBlockInfo
impl<'de> Deserialize<'de> for NextBlockInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NextBlockInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NextBlockInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NextBlockInfo
impl PartialEq for NextBlockInfo
Source§impl Serialize for NextBlockInfo
impl Serialize for NextBlockInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NextBlockInfo
Auto Trait Implementations§
impl Freeze for NextBlockInfo
impl RefUnwindSafe for NextBlockInfo
impl Send for NextBlockInfo
impl Sync for NextBlockInfo
impl Unpin for NextBlockInfo
impl UnsafeUnpin for NextBlockInfo
impl UnwindSafe for NextBlockInfo
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