Struct polymesh_api::polymesh::api::technical_committee_membership::TechnicalCommitteeMembershipCallApi
source · 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> !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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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 more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§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
.