pub struct SessionAuthInfoResult {
pub copilot_user: Option<CopilotUserResponse>,
pub env_var: Option<String>,
pub host: String,
pub login: Option<String>,
pub registration_id: Option<String>,
pub type: AuthInfoType,
}Expand description
Current authentication information, or null when no authentication is active.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§copilot_user: Option<CopilotUserResponse>Snapshot of the authenticated user’s Copilot subscription info, if known
env_var: Option<String>Name of the environment variable that supplied the credential, when applicable
host: StringAuthentication host
login: Option<String>Authenticated login, when available
registration_id: Option<String>Opaque SDK GitHub credential registration backing this identity. Routing metadata only; never a credential.
type: AuthInfoTypeAuthentication type
Trait Implementations§
Source§impl Clone for SessionAuthInfoResult
impl Clone for SessionAuthInfoResult
Source§fn clone(&self) -> SessionAuthInfoResult
fn clone(&self) -> SessionAuthInfoResult
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 moreSource§impl Debug for SessionAuthInfoResult
impl Debug for SessionAuthInfoResult
Source§impl Default for SessionAuthInfoResult
impl Default for SessionAuthInfoResult
Source§fn default() -> SessionAuthInfoResult
fn default() -> SessionAuthInfoResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionAuthInfoResult
impl<'de> Deserialize<'de> for SessionAuthInfoResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionAuthInfoResult
impl RefUnwindSafe for SessionAuthInfoResult
impl Send for SessionAuthInfoResult
impl Sync for SessionAuthInfoResult
impl Unpin for SessionAuthInfoResult
impl UnsafeUnpin for SessionAuthInfoResult
impl UnwindSafe for SessionAuthInfoResult
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