pub struct AuthInfo {
pub token: Option<String>,
pub source: TokenSource,
pub detected: bool,
}Expand description
Result of token resolution for a single registry.
Returned by resolve_token. When detected is true, a valid
token was found; its origin is recorded in source.
Fields§
§token: Option<String>The resolved token (if found).
source: TokenSourceSource of the token.
detected: boolWhether authentication was detected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthInfo
impl RefUnwindSafe for AuthInfo
impl Send for AuthInfo
impl Sync for AuthInfo
impl Unpin for AuthInfo
impl UnsafeUnpin for AuthInfo
impl UnwindSafe for AuthInfo
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