pub struct SessionRpcGitHubAuth<'a> { /* private fields */ }Expand description
session.gitHubAuth.* RPCs.
Implementations§
Source§impl<'a> SessionRpcGitHubAuth<'a>
impl<'a> SessionRpcGitHubAuth<'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.gitHubAuth.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.gitHubAuth.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 SessionRpcGitHubAuth<'a>
impl<'a> Clone for SessionRpcGitHubAuth<'a>
Source§fn clone(&self) -> SessionRpcGitHubAuth<'a>
fn clone(&self) -> SessionRpcGitHubAuth<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more