pub struct SessionRpcAuth<'a> { /* private fields */ }Expand description
session.auth.* RPCs.
Implementations§
Source§impl<'a> SessionRpcAuth<'a>
impl<'a> SessionRpcAuth<'a>
Sourcepub async fn get_status(&self) -> Result<SessionAuthStatus, Error>
pub async fn get_status(&self) -> Result<SessionAuthStatus, Error>
Gets authentication status and account metadata for the session.
Wire method: session.auth.getStatus.
§Returns
Authentication status and account metadata for the session.
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_credentials(
&self,
params: SessionSetCredentialsParams,
) -> Result<SessionSetCredentialsResult, Error>
pub async fn set_credentials( &self, params: SessionSetCredentialsParams, ) -> Result<SessionSetCredentialsResult, Error>
Updates the session’s auth credentials used for outbound model and API requests.
Wire method: session.auth.setCredentials.
§Parameters
params- New auth credentials to install on the session. Omit to leave credentials unchanged.
§Returns
Indicates whether the credential update succeeded.
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.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcAuth<'a>
impl<'a> Clone for SessionRpcAuth<'a>
Source§fn clone(&self) -> SessionRpcAuth<'a>
fn clone(&self) -> SessionRpcAuth<'a>
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 moreimpl<'a> Copy for SessionRpcAuth<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcAuth<'a>
impl<'a> !RefUnwindSafe for SessionRpcAuth<'a>
impl<'a> Send for SessionRpcAuth<'a>
impl<'a> Sync for SessionRpcAuth<'a>
impl<'a> Unpin for SessionRpcAuth<'a>
impl<'a> UnsafeUnpin for SessionRpcAuth<'a>
impl<'a> !UnwindSafe for SessionRpcAuth<'a>
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