pub struct HashrateSummary {
pub hashrates: Vec<HashrateEntry>,
pub difficulty: Vec<DifficultyEntry>,
pub current_hashrate: u128,
pub current_difficulty: f64,
}Expand description
Summary of network hashrate and difficulty data.
Fields§
§hashrates: Vec<HashrateEntry>Historical hashrate data points.
difficulty: Vec<DifficultyEntry>Historical difficulty adjustments.
current_hashrate: u128Current network hashrate (H/s).
current_difficulty: f64Current network difficulty.
Trait Implementations§
Source§impl Debug for HashrateSummary
impl Debug for HashrateSummary
Source§impl<'de> Deserialize<'de> for HashrateSummary
impl<'de> Deserialize<'de> for HashrateSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HashrateSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HashrateSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for HashrateSummary
impl JsonSchema for HashrateSummary
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for HashrateSummary
impl Serialize for HashrateSummary
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
Auto Trait Implementations§
impl Freeze for HashrateSummary
impl RefUnwindSafe for HashrateSummary
impl Send for HashrateSummary
impl Sync for HashrateSummary
impl Unpin for HashrateSummary
impl UnwindSafe for HashrateSummary
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more