Struct gekko::runtime::kusama::extrinsics::phragmen_election::CleanDefunctVoters [−][src]
pub struct CleanDefunctVoters<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub _num_voters: A,
pub _num_defunct: B,
}
Expand description
Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
Documentation (provided by the runtime metadata)
Clean all voters who are defunct (i.e. they do not serve any purpose at all). The deposit of the removed voters are returned.
This is an root function to be used only for cleaning the state.
The dispatch origin of this call must be root.
The total number of voters and those that are defunct must be provided as witness data.
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
_num_voters: A
Type description: u32
_num_defunct: B
Type description: u32
Trait Implementations
impl<A: PartialEq, B: PartialEq> PartialEq<CleanDefunctVoters<A, B>> for CleanDefunctVoters<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A: PartialEq, B: PartialEq> PartialEq<CleanDefunctVoters<A, B>> for CleanDefunctVoters<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 CleanDefunctVoters<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A, B> StructuralPartialEq for CleanDefunctVoters<A, B> where
A: Encode + Decode,
B: Encode + Decode,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for CleanDefunctVoters<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for CleanDefunctVoters<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for CleanDefunctVoters<A, B> where
A: Sync,
B: Sync,
impl<A, B> Unpin for CleanDefunctVoters<A, B> where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for CleanDefunctVoters<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
.