Struct gekko::runtime::kusama::extrinsics::phragmen_election::RemoveMember [−][src]
pub struct RemoveMember<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub who: A,
pub has_replacement: B,
}
Expand description
Remove a particular member from the set. This is effective immediately and the bond of
Documentation (provided by the runtime metadata)
Remove a particular member from the set. This is effective immediately and the bond of the outgoing member is slashed.
If a runner-up is available, then the best runner-up will be removed and replaces the outgoing member. Otherwise, a new phragmen election is started.
The dispatch origin of this call must be root.
Note that this does not affect the designated block number of the next election.
If we have a replacement, we use a small weight. Else, since this is a root call and will go into phragmen, we assume full block for now.
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
who: A
Type description: <T::Lookup as StaticLookup>::Source
has_replacement: B
Type description: bool
Trait Implementations
impl<A: PartialEq, B: PartialEq> PartialEq<RemoveMember<A, B>> for RemoveMember<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A: PartialEq, B: PartialEq> PartialEq<RemoveMember<A, B>> for RemoveMember<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> StructuralPartialEq for RemoveMember<A, B> where
A: Encode + Decode,
B: Encode + Decode,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for RemoveMember<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for RemoveMember<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for RemoveMember<A, B> where
A: Sync,
B: Sync,
impl<A, B> Unpin for RemoveMember<A, B> where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for RemoveMember<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
.