Struct polymesh_api::polymesh::api::technical_committee_membership::CallApi
source · pub struct CallApi<'api> { /* private fields */ }Implementations§
source§impl<'api> CallApi<'api>
impl<'api> CallApi<'api>
sourcepub fn set_active_members_limit(&self, limit: u32) -> Result<WrappedCall<'api>>
pub fn set_active_members_limit(&self, limit: u32) -> Result<WrappedCall<'api>>
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<'api>>
pub fn disable_member(
&self,
who: IdentityId,
expiry: Option<u64>,
at: Option<u64>
) -> Result<WrappedCall<'api>>
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 whenwhois removed from CDD. As soon as it is expired, the generated claims will be “invalid” aswhois not considered a member of the group.
sourcepub fn add_member(&self, who: IdentityId) -> Result<WrappedCall<'api>>
pub fn add_member(&self, who: IdentityId) -> Result<WrappedCall<'api>>
Adds a member who to the group. May only be called from AddOrigin or root.
Arguments
origin- Origin representingAddOriginor rootwho- IdentityId to be added to the group.
sourcepub fn remove_member(&self, who: IdentityId) -> Result<WrappedCall<'api>>
pub fn remove_member(&self, who: IdentityId) -> Result<WrappedCall<'api>>
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 representingRemoveOriginor rootwho- IdentityId to be removed from the group.
sourcepub fn swap_member(
&self,
remove: IdentityId,
add: IdentityId
) -> Result<WrappedCall<'api>>
pub fn swap_member(
&self,
remove: IdentityId,
add: IdentityId
) -> Result<WrappedCall<'api>>
Swaps out one member remove for another member add.
May only be called from SwapOrigin or root.
Arguments
origin- Origin representingSwapOriginor 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<'api>>
pub fn reset_members(
&self,
members: Vec<IdentityId>
) -> Result<WrappedCall<'api>>
Changes the membership to a new set, disregarding the existing membership.
May only be called from ResetOrigin or root.
Arguments
origin- Origin representingResetOriginor rootmembers- New set of identities
sourcepub fn abdicate_membership(&self) -> Result<WrappedCall<'api>>
pub fn abdicate_membership(&self) -> Result<WrappedCall<'api>>
Trait Implementations§
Auto Trait Implementations§
impl<'api> !RefUnwindSafe for CallApi<'api>
impl<'api> Send for CallApi<'api>
impl<'api> Sync for CallApi<'api>
impl<'api> Unpin for CallApi<'api>
impl<'api> !UnwindSafe for CallApi<'api>
Blanket Implementations§
§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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read moresource§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> 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 Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.