pub struct SubAccountsService { /* private fields */ }Implementations§
Source§impl SubAccountsService
impl SubAccountsService
pub fn new(ctx: ServiceContext) -> Self
Source§impl SubAccountsService
impl SubAccountsService
Sourcepub async fn subscribe(
&self,
account_id: Option<&str>,
) -> Result<TypedSubscription<SubAccount>>
pub async fn subscribe( &self, account_id: Option<&str>, ) -> Result<TypedSubscription<SubAccount>>
Subscribe to private subaccount updates (requires realtime feature).
Sourcepub async fn subscribe_api_keys(
&self,
account_id: Option<&str>,
) -> Result<TypedSubscription<ApiKeySummary>>
pub async fn subscribe_api_keys( &self, account_id: Option<&str>, ) -> Result<TypedSubscription<ApiKeySummary>>
Subscribe to private API key updates for an account (requires realtime feature).
pub async fn list(&self, req: ListSubaccountsRequest) -> Result<SubAccountsList>
pub async fn get( &self, subaccount_id: u64, opts: GetSubaccountOpts, ) -> Result<GetSubaccountResult>
pub async fn list_members( &self, req: ListSubaccountMembersRequest, ) -> Result<SubAccountMembersList>
pub async fn list_invites( &self, req: ListSubaccountInvitesRequest, ) -> Result<SubAccountInvitesList>
pub async fn list_activity( &self, req: ListSubaccountEventsRequest, ) -> Result<SubAccountActivityList>
Trait Implementations§
Source§impl Clone for SubAccountsService
impl Clone for SubAccountsService
Source§fn clone(&self) -> SubAccountsService
fn clone(&self) -> SubAccountsService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubAccountsService
impl !RefUnwindSafe for SubAccountsService
impl !UnwindSafe for SubAccountsService
impl Send for SubAccountsService
impl Sync for SubAccountsService
impl Unpin for SubAccountsService
impl UnsafeUnpin for SubAccountsService
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