pub struct ExternalAgentsPagedQueryApi<'api> { /* private fields */ }
Implementations§
source§impl<'api> ExternalAgentsPagedQueryApi<'api>
impl<'api> ExternalAgentsPagedQueryApi<'api>
sourcepub fn ag_id_sequence(&self) -> StoragePaged<Ticker, AGId>
pub fn ag_id_sequence(&self) -> StoragePaged<Ticker, AGId>
The next per-Ticker
AG ID in the sequence.
The full ID is defined as a combination of Ticker
and a number in this sequence,
which starts from 1, rather than 0.
sourcepub fn agent_of(&self, key_0: IdentityId) -> StoragePaged<Ticker, ()>
pub fn agent_of(&self, key_0: IdentityId) -> StoragePaged<Ticker, ()>
Maps an agent (IdentityId
) to all all Ticker
s they belong to, if any.
sourcepub fn group_of_agent(
&self,
key_0: Ticker
) -> StoragePaged<IdentityId, AgentGroup>
pub fn group_of_agent( &self, key_0: Ticker ) -> StoragePaged<IdentityId, AgentGroup>
Maps agents (IdentityId
) for a Ticker
to what AG they belong to, if any.
sourcepub fn num_full_agents(&self) -> StoragePaged<Ticker, u32>
pub fn num_full_agents(&self) -> StoragePaged<Ticker, u32>
Maps a Ticker
to the number of Full
agents for it.
sourcepub fn group_permissions(
&self,
key_0: Ticker
) -> StoragePaged<AGId, SubsetRestriction<PalletPermissions>>
pub fn group_permissions( &self, key_0: Ticker ) -> StoragePaged<AGId, SubsetRestriction<PalletPermissions>>
For custom AGs of a Ticker
, maps to what permissions an agent in that AG would have.
Trait Implementations§
source§impl<'api> Clone for ExternalAgentsPagedQueryApi<'api>
impl<'api> Clone for ExternalAgentsPagedQueryApi<'api>
source§fn clone(&self) -> ExternalAgentsPagedQueryApi<'api>
fn clone(&self) -> ExternalAgentsPagedQueryApi<'api>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'api> !RefUnwindSafe for ExternalAgentsPagedQueryApi<'api>
impl<'api> Send for ExternalAgentsPagedQueryApi<'api>
impl<'api> Sync for ExternalAgentsPagedQueryApi<'api>
impl<'api> Unpin for ExternalAgentsPagedQueryApi<'api>
impl<'api> !UnwindSafe for ExternalAgentsPagedQueryApi<'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
Mutably borrows from an owned value. Read more
§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>,
Consume self to return an equivalent value of
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
The counterpart to
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
Consume self to return an equivalent value of
T
.