pub struct AuthStatus {
pub strategy: AuthStrategy,
pub codex_home: PathBuf,
pub auth_file: PathBuf,
}Expand description
The result of detect.
Fields§
§strategy: AuthStrategyWhich credential the CLI would use.
codex_home: PathBufThe resolved CODEX_HOME.
auth_file: PathBufWhere a stored login would live, whether or not it exists.
Implementations§
Source§impl AuthStatus
impl AuthStatus
Sourcepub fn is_configured(&self) -> bool
pub fn is_configured(&self) -> bool
Whether the CLI would find any credential at all.
True does not mean the credential is valid: nothing here contacts the
API. Use LoginStatusCommand for that.
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
Source§impl Debug for AuthStatus
impl Debug for AuthStatus
impl Eq for AuthStatus
Source§impl PartialEq for AuthStatus
impl PartialEq for AuthStatus
impl StructuralPartialEq for AuthStatus
Auto Trait Implementations§
impl Forget for AuthStatus
impl Freeze for AuthStatus
impl Move for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatus
impl Sync for AuthStatuswhere
RawVecInner: Sync,
impl Unpin for AuthStatus
impl UnsafeUnpin for AuthStatuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
impl UnwindSafe for AuthStatus
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