Struct polymesh_api::polymesh::api::cdd_service_providers::CallApi
source · [−]pub struct CallApi<'api> { /* private fields */ }
Implementations
sourceimpl<'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 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<'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 representingAddOrigin
or 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 representingRemoveOrigin
or 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 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<'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 representingResetOrigin
or 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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 morefn 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 morefn 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 morefn 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 moresourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
sourcefn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
sourcefn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read moreimpl<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
.sourceimpl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
sourcefn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.