pub struct ResolvedAuth {
pub mode: AuthMode,
pub first_run: bool,
pub token_path: Option<PathBuf>,
}Expand description
Outcome of resolving the auth mode, including whether a token was just generated (so the caller can print the one-time first-run guidance) and the persisted path (for that message). I/O policy stays with the caller.
Fields§
§mode: AuthMode§first_run: bool§token_path: Option<PathBuf>Trait Implementations§
Source§impl Clone for ResolvedAuth
impl Clone for ResolvedAuth
Source§fn clone(&self) -> ResolvedAuth
fn clone(&self) -> ResolvedAuth
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 moreAuto Trait Implementations§
impl Freeze for ResolvedAuth
impl RefUnwindSafe for ResolvedAuth
impl Send for ResolvedAuth
impl Sync for ResolvedAuth
impl Unpin for ResolvedAuth
impl UnsafeUnpin for ResolvedAuth
impl UnwindSafe for ResolvedAuth
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