Struct helium_api::models::Penalty [−][src]
pub struct Penalty {
pub kind: PenaltyType,
pub height: u64,
pub amount: f64,
}Expand description
Represents a penalty for a validator.
Fields
kind: PenaltyTypeThe type of penalty
height: u64The block the penalty occured in.
amount: f64The amount of penalty.
Trait Implementations
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 RefUnwindSafe for Penaltyimpl UnwindSafe for PenaltyBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more