Struct gekko::runtime::polkadot::extrinsics::staking::CancelDeferredSlash [−][src]
pub struct CancelDeferredSlash<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub era: A,
pub slash_indices: B,
}
Expand description
Cancel enactment of a deferred slash.
Documentation (provided by the runtime metadata)
Cancel enactment of a deferred slash.
Can be called by the T::SlashCancelOrigin
.
Parameters: era and indices of the slashes for that era to kill.
Complexity: O(U + S) with U unapplied slashes weighted with U=1000 and S is the number of slash indices to be canceled.
- Read: Unapplied Slashes
- Write: Unapplied Slashes
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
era: A
Type description: EraIndex
slash_indices: B
Type description: Vec<u32>
Trait Implementations
impl<A: PartialEq, B: PartialEq> PartialEq<CancelDeferredSlash<A, B>> for CancelDeferredSlash<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A: PartialEq, B: PartialEq> PartialEq<CancelDeferredSlash<A, B>> for CancelDeferredSlash<A, B> where
A: Encode + Decode,
B: Encode + Decode,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A, B> StructuralEq for CancelDeferredSlash<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A, B> StructuralPartialEq for CancelDeferredSlash<A, B> where
A: Encode + Decode,
B: Encode + Decode,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for CancelDeferredSlash<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for CancelDeferredSlash<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for CancelDeferredSlash<A, B> where
A: Sync,
B: Sync,
impl<A, B> Unpin for CancelDeferredSlash<A, B> where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for CancelDeferredSlash<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.