pub struct SessionRpcAccounts<'a> { /* private fields */ }Expand description
session.accounts.* RPCs.
Implementations§
Source§impl<'a> SessionRpcAccounts<'a>
impl<'a> SessionRpcAccounts<'a>
Sourcepub fn login(&self) -> SessionRpcAccountsLogin<'a>
pub fn login(&self) -> SessionRpcAccountsLogin<'a>
session.accounts.login.* sub-namespace.
Sourcepub async fn enumerate(
&self,
params: AccountsEnumerateRequest,
) -> Result<AuthEnumerateValue, Error>
pub async fn enumerate( &self, params: AccountsEnumerateRequest, ) -> Result<AuthEnumerateValue, Error>
Enumerate a typed accounts collection: the signed-in accounts, or the providers offered for interactive login.
Wire method: session.accounts.enumerate.
§Parameters
params- Enumerate request carrying the typed collection query.
§Returns
The enumerated collection, keyed by the same selector as the query.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn get(
&self,
params: AccountsGetRequest,
) -> Result<AuthReadValue, Error>
pub async fn get( &self, params: AccountsGetRequest, ) -> Result<AuthReadValue, Error>
Read one typed accounts datum: the active account, a neutral status summary, or the last authentication errors.
Wire method: session.accounts.get.
§Parameters
params- Read request carrying the typed datum query.
§Returns
The read result, keyed by the same selector as the query.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn set(
&self,
params: AccountsSetRequest,
) -> Result<AuthWriteResult, Error>
pub async fn set( &self, params: AccountsSetRequest, ) -> Result<AuthWriteResult, Error>
Apply one non-interactive accounts mutation: switch the active account, log an account out, or set credentials from a token.
Wire method: session.accounts.set.
§Parameters
params- Mutation request carrying the typed write command.
§Returns
Result of a non-interactive accounts mutation.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.