pub struct CddServiceProvidersCallApi<'api> { /* private fields */ }
Implementations§
source§impl<'api> CddServiceProvidersCallApi<'api>
impl<'api> CddServiceProvidersCallApi<'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§
source§impl<'api> Clone for CddServiceProvidersCallApi<'api>
impl<'api> Clone for CddServiceProvidersCallApi<'api>
source§fn clone(&self) -> CddServiceProvidersCallApi<'api>
fn clone(&self) -> CddServiceProvidersCallApi<'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 CddServiceProvidersCallApi<'api>
impl<'api> Send for CddServiceProvidersCallApi<'api>
impl<'api> Sync for CddServiceProvidersCallApi<'api>
impl<'api> Unpin for CddServiceProvidersCallApi<'api>
impl<'api> !UnwindSafe for CddServiceProvidersCallApi<'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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, 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
.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§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.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> 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<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
.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
.