pub struct AccountService { /* private fields */ }Expand description
Norman API service
Implementations§
Source§impl AccountService
impl AccountService
pub fn new() -> Self
Sourcepub async fn get_account_by_id(&self, account_id: &str) -> Result<Account>
pub async fn get_account_by_id(&self, account_id: &str) -> Result<Account>
Fetch a single account by ID
Sourcepub async fn get_accounts(
&self,
filters: Option<Value>,
) -> Result<Vec<Account>, Error>
pub async fn get_accounts( &self, filters: Option<Value>, ) -> Result<Vec<Account>, Error>
Fetch multiple accounts with optional filters
Sourcepub async fn get_authentication_factors(
&self,
account_id: &str,
) -> Result<AccountAuthenticationFactors, Error>
pub async fn get_authentication_factors( &self, account_id: &str, ) -> Result<AccountAuthenticationFactors, Error>
Retrieve authentication factors for an account
Auto Trait Implementations§
impl !RefUnwindSafe for AccountService
impl !UnwindSafe for AccountService
impl Freeze for AccountService
impl Send for AccountService
impl Sync for AccountService
impl Unpin for AccountService
impl UnsafeUnpin for AccountService
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