pub struct TechnicalCommitteeMembershipCallApi<'api> { /* private fields */ }
Implementations§
Source§impl<'api> TechnicalCommitteeMembershipCallApi<'api>
impl<'api> TechnicalCommitteeMembershipCallApi<'api>
Sourcepub fn set_active_members_limit(&self, limit: u32) -> Result<WrappedCall>
pub fn set_active_members_limit(&self, limit: u32) -> Result<WrappedCall>
Change this group’s limit for how many concurrent active members they may be.
§Arguments
limit
- the number of active members there may be concurrently.
Sourcepub fn disable_member(
&self,
who: IdentityId,
expiry: Option<u64>,
at: Option<u64>,
) -> Result<WrappedCall>
pub fn disable_member( &self, who: IdentityId, expiry: Option<u64>, at: Option<u64>, ) -> Result<WrappedCall>
Disables a member at specific moment.
Please note that if member is already revoked (a “valid member”), its revocation time-stamp will be updated.
Any disabled member should NOT allow to act like an active member of the group. For
instance, a disabled CDD member should NOT be able to generate a CDD claim. However any
generated claim issued before at
would be considered as a valid one.
If you want to invalidate any generated claim, you should use Self::remove_member
.
§Arguments
at
- Revocation time-stamp.who
- Target member of the group.expiry
- Time-stamp whenwho
is removed from CDD. As soon as it is expired, the generated claims will be “invalid” aswho
is not considered a member of the group.
Sourcepub fn add_member(&self, who: IdentityId) -> Result<WrappedCall>
pub fn add_member(&self, who: IdentityId) -> Result<WrappedCall>
Adds a member who
to the group. May only be called from AddOrigin
or root.
§Arguments
origin
- Origin representingAddOrigin
or rootwho
- IdentityId to be added to the group.
Sourcepub fn remove_member(&self, who: IdentityId) -> Result<WrappedCall>
pub fn remove_member(&self, who: IdentityId) -> Result<WrappedCall>
Removes a member who
from the set. May only be called from RemoveOrigin
or root.
Any claim previously generated by this member is not valid as a group claim. For
instance, if a CDD member group generated a claim for a target identity and then it is
removed, that claim will be invalid. In case you want to keep the validity of generated
claims, you have to use Self::disable_member
function
§Arguments
origin
- Origin representingRemoveOrigin
or rootwho
- IdentityId to be removed from the group.
Sourcepub fn swap_member(
&self,
remove: IdentityId,
add: IdentityId,
) -> Result<WrappedCall>
pub fn swap_member( &self, remove: IdentityId, add: IdentityId, ) -> Result<WrappedCall>
Swaps out one member remove
for another member add
.
May only be called from SwapOrigin
or root.
§Arguments
origin
- Origin representingSwapOrigin
or rootremove
- IdentityId to be removed from the group.add
- IdentityId to be added in place ofremove
.
Sourcepub fn reset_members(&self, members: Vec<IdentityId>) -> Result<WrappedCall>
pub fn reset_members(&self, members: Vec<IdentityId>) -> Result<WrappedCall>
Changes the membership to a new set, disregarding the existing membership.
May only be called from ResetOrigin
or root.
§Arguments
origin
- Origin representingResetOrigin
or rootmembers
- New set of identities
Sourcepub fn abdicate_membership(&self) -> Result<WrappedCall>
pub fn abdicate_membership(&self) -> Result<WrappedCall>
Trait Implementations§
Source§impl<'api> Clone for TechnicalCommitteeMembershipCallApi<'api>
impl<'api> Clone for TechnicalCommitteeMembershipCallApi<'api>
Source§fn clone(&self) -> TechnicalCommitteeMembershipCallApi<'api>
fn clone(&self) -> TechnicalCommitteeMembershipCallApi<'api>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'api> Freeze for TechnicalCommitteeMembershipCallApi<'api>
impl<'api> !RefUnwindSafe for TechnicalCommitteeMembershipCallApi<'api>
impl<'api> Send for TechnicalCommitteeMembershipCallApi<'api>
impl<'api> Sync for TechnicalCommitteeMembershipCallApi<'api>
impl<'api> Unpin for TechnicalCommitteeMembershipCallApi<'api>
impl<'api> !UnwindSafe for TechnicalCommitteeMembershipCallApi<'api>
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
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.