pub struct OpenAICredentialOverview {
pub api_key_available: bool,
pub chatgpt_email: Option<String>,
pub chatgpt_plan: Option<String>,
pub chatgpt_session_present: bool,
pub chatgpt_session_provenance: Option<OpenAIChatGptSessionProvenance>,
pub codex_fallback_available: bool,
pub active_source: Option<OpenAIResolvedAuthSource>,
pub preferred_method: OpenAIPreferredMethod,
pub notice: Option<String>,
pub recommendation: Option<String>,
}Expand description
Redacted summary of available OpenAI credentials for CLI/TUI display.
Does NOT carry token data — only metadata (email, plan, provenance, expiry)
so credential values can never leak through Debug or logging.
Fields§
§api_key_available: bool§chatgpt_email: Option<String>Email from the ChatGPT session’s ID token, if available.
chatgpt_plan: Option<String>Plan type from the ChatGPT session’s ID token, if available.
chatgpt_session_present: booltrue when a ChatGPT session (native or Codex fallback) is available.
chatgpt_session_provenance: Option<OpenAIChatGptSessionProvenance>Provenance of the ChatGPT session — None when no session is available.
codex_fallback_available: booltrue only when Codex’s auth.json was successfully parsed into a
usable session (not merely that the file exists on disk).
active_source: Option<OpenAIResolvedAuthSource>§preferred_method: OpenAIPreferredMethod§notice: Option<String>§recommendation: Option<String>Trait Implementations§
Source§impl Clone for OpenAICredentialOverview
impl Clone for OpenAICredentialOverview
Source§fn clone(&self) -> OpenAICredentialOverview
fn clone(&self) -> OpenAICredentialOverview
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 Forget for OpenAICredentialOverview
impl Freeze for OpenAICredentialOverview
impl Move for OpenAICredentialOverview
impl RefUnwindSafe for OpenAICredentialOverview
impl Send for OpenAICredentialOverviewwhere
RawVecInner: Send,
impl Sync for OpenAICredentialOverviewwhere
RawVecInner: Sync,
impl Unpin for OpenAICredentialOverview
impl UnsafeUnpin for OpenAICredentialOverview
impl UnwindSafe for OpenAICredentialOverviewwhere
RawVecInner: UnwindSafe,
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