pub struct DifficultyEntry {
pub timestamp: u64,
pub height: u32,
pub difficulty: f64,
pub adjustment: Option<f32>,
}Expand description
Difficulty entry
Fields§
§timestamp: u64UNIX timestamp
height: u32Block height
difficulty: f64Difficulty
adjustment: Option<f32>Adjustment
Trait Implementations§
Source§impl Clone for DifficultyEntry
impl Clone for DifficultyEntry
Source§fn clone(&self) -> DifficultyEntry
fn clone(&self) -> DifficultyEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DifficultyEntry
Source§impl Debug for DifficultyEntry
impl Debug for DifficultyEntry
Source§impl<'de> Deserialize<'de> for DifficultyEntry
impl<'de> Deserialize<'de> for DifficultyEntry
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
Source§impl PartialEq for DifficultyEntry
impl PartialEq for DifficultyEntry
Source§impl PartialOrd for DifficultyEntry
impl PartialOrd for DifficultyEntry
Source§impl Serialize for DifficultyEntry
impl Serialize for DifficultyEntry
impl StructuralPartialEq for DifficultyEntry
Auto Trait Implementations§
impl Freeze for DifficultyEntry
impl RefUnwindSafe for DifficultyEntry
impl Send for DifficultyEntry
impl Sync for DifficultyEntry
impl Unpin for DifficultyEntry
impl UnsafeUnpin for DifficultyEntry
impl UnwindSafe for DifficultyEntry
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