Struct gekko::runtime::kusama::extrinsics::technical_committee::SetMembers [−][src]
pub struct SetMembers<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode, {
pub new_members: A,
pub prime: B,
pub old_count: C,
}
Expand description
Set the collective’s membership.
Documentation (provided by the runtime metadata)
Set the collective’s membership.
new_members
: The new member list. Be nice to the chain and provide it sorted.prime
: The prime member whose vote sets the default.old_count
: The upper bound for the previous number of members in storage. Used for weight estimation.
Requires root origin.
NOTE: Does not enforce the expected MaxMembers
limit on the amount of members, but
the weight estimations rely on it to estimate dispatchable weight.
Weight
O(MP + N)
where:M
old-members-count (code- and governance-bounded)N
new-members-count (code- and governance-bounded)P
proposals-count (code-bounded)
- DB:
- 1 storage mutation (codec
O(M)
read,O(N)
write) for reading and writing the members - 1 storage read (codec
O(P)
) for reading the proposals P
storage mutations (codecO(M)
) for updating the votes for each proposal- 1 storage write (codec
O(1)
) for deleting the oldprime
and setting the new one
- 1 storage mutation (codec
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
new_members: A
Type description: Vec<T::AccountId>
prime: B
Type description: Option<T::AccountId>
old_count: C
Type description: MemberCount
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A: Eq, B: Eq, C: Eq> Eq for SetMembers<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralEq for SetMembers<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
impl<A, B, C> StructuralPartialEq for SetMembers<A, B, C> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for SetMembers<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for SetMembers<A, B, C> where
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for SetMembers<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for SetMembers<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for SetMembers<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: 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
.