pub struct Penalty {
pub kind: PenaltyType,
pub height: u64,
pub amount: f64,
}
Expand description
Represents a penalty for a validator.
Fields§
§kind: PenaltyType
The type of penalty
height: u64
The block the penalty occured in.
amount: f64
The amount of penalty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Penalty
impl<'de> Deserialize<'de> for Penalty
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 Penalty
impl RefUnwindSafe for Penalty
impl Send for Penalty
impl Sync for Penalty
impl Unpin for Penalty
impl UnwindSafe for Penalty
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