pub struct SlashResult {
pub self_slashed: u64,
pub delegated_slashed: u64,
pub jailed: bool,
}Expand description
Result of a slash operation.
Fields§
§self_slashed: u64Amount slashed from self-stake.
delegated_slashed: u64Amount slashed from delegated stakes.
jailed: boolWhether the validator was jailed.
Trait Implementations§
Source§impl Clone for SlashResult
impl Clone for SlashResult
Source§fn clone(&self) -> SlashResult
fn clone(&self) -> SlashResult
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 moreAuto Trait Implementations§
impl Freeze for SlashResult
impl RefUnwindSafe for SlashResult
impl Send for SlashResult
impl Sync for SlashResult
impl Unpin for SlashResult
impl UnsafeUnpin for SlashResult
impl UnwindSafe for SlashResult
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