pub struct GroupMethods { /* private fields */ }Expand description
Methods for group membership lookups (circles_getGroupMemberships, circles_getGroups).
Implementations§
Source§impl GroupMethods
impl GroupMethods
Sourcepub async fn get_memberships(
&self,
avatar: Address,
) -> Result<Vec<GroupMembershipRow>>
pub async fn get_memberships( &self, avatar: Address, ) -> Result<Vec<GroupMembershipRow>>
circles_getGroupMemberships
Sourcepub fn get_group_memberships(
&self,
avatar: Address,
limit: u32,
sort_order: SortOrder,
) -> PagedQuery<GroupMembershipRow>
pub fn get_group_memberships( &self, avatar: Address, limit: u32, sort_order: SortOrder, ) -> PagedQuery<GroupMembershipRow>
Paged GroupMemberships query filtered by member address.
Sourcepub fn get_group_members(
&self,
group: Address,
limit: u32,
sort_order: SortOrder,
) -> PagedQuery<GroupMembershipRow>
pub fn get_group_members( &self, group: Address, limit: u32, sort_order: SortOrder, ) -> PagedQuery<GroupMembershipRow>
Paged GroupMemberships query filtered by group address.
Sourcepub fn get_group_holders(
&self,
group: Address,
limit: u32,
) -> PagedQuery<GroupTokenHolderRow>
pub fn get_group_holders( &self, group: Address, limit: u32, ) -> PagedQuery<GroupTokenHolderRow>
Paged GroupTokenHoldersBalance query matching the TS group holders helper.
Sourcepub fn get_groups_paged(
&self,
limit: u32,
params: Option<GroupQueryParams>,
sort_order: SortOrder,
) -> PagedQuery<GroupRow>
pub fn get_groups_paged( &self, limit: u32, params: Option<GroupQueryParams>, sort_order: SortOrder, ) -> PagedQuery<GroupRow>
Paged Groups query with optional filters matching the TS helper.
Sourcepub async fn find_groups(
&self,
limit: u32,
params: Option<GroupQueryParams>,
) -> Result<Vec<GroupRow>>
pub async fn find_groups( &self, limit: u32, params: Option<GroupQueryParams>, ) -> Result<Vec<GroupRow>>
Fetch groups across pages until limit rows are collected.
Trait Implementations§
Source§impl Clone for GroupMethods
impl Clone for GroupMethods
Source§fn clone(&self) -> GroupMethods
fn clone(&self) -> GroupMethods
Returns a duplicate 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 Freeze for GroupMethods
impl !RefUnwindSafe for GroupMethods
impl Send for GroupMethods
impl Sync for GroupMethods
impl Unpin for GroupMethods
impl UnsafeUnpin for GroupMethods
impl !UnwindSafe for GroupMethods
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more