pub enum AuthStatus {
CodexHomeMissing {
path: PathBuf,
},
None,
Native,
Managed {
identity: IdentityName,
},
BrokenManaged {
identity: IdentityName,
},
Unknown {
reason: UnknownAuthReason,
},
}Expand description
Current auth status.
Variants§
CodexHomeMissing
Codex home does not exist.
None
No auth file exists.
Native
auth.json is a regular native Codex auth file.
Managed
auth.json points to a usable managed identity.
Fields
§
identity: IdentityNameActive identity.
BrokenManaged
auth.json points to a managed identity that is missing or unusable.
Fields
§
identity: IdentityNameBroken active identity.
Unknown
CAM cannot safely classify the auth state.
Fields
§
reason: UnknownAuthReasonReason the state is unknown.
Trait Implementations§
Source§impl Clone for AuthStatus
impl Clone for AuthStatus
Source§fn clone(&self) -> AuthStatus
fn clone(&self) -> AuthStatus
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 AuthStatus
impl Debug for AuthStatus
Source§impl Display for AuthStatus
impl Display for AuthStatus
impl Eq for AuthStatus
Source§impl PartialEq for AuthStatus
impl PartialEq for AuthStatus
Source§fn eq(&self, other: &AuthStatus) -> bool
fn eq(&self, other: &AuthStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthStatus
Auto Trait Implementations§
impl Freeze for AuthStatus
impl RefUnwindSafe for AuthStatus
impl Send for AuthStatus
impl Sync for AuthStatus
impl Unpin for AuthStatus
impl UnsafeUnpin for AuthStatus
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