pub struct CodexProvider;Expand description
Provider for OpenAI Codex CLI credentials.
Codex CLI stores auth in ~/.codex/ (controlled by CODEX_HOME env var).
Key files: auth.json (tokens), config.toml (settings).
Trait Implementations§
Source§impl AuthProvider for CodexProvider
impl AuthProvider for CodexProvider
Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable display name.
Source§fn credential_files(&self) -> Vec<CredentialFile>
fn credential_files(&self) -> Vec<CredentialFile>
List of credential files/directories this provider manages.
Source§fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ValidationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ValidationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate whether the current local credentials are still valid.
Defaults to
ValidationResult::Unknown.Source§impl Clone for CodexProvider
impl Clone for CodexProvider
Source§fn clone(&self) -> CodexProvider
fn clone(&self) -> CodexProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 CodexProvider
impl Debug for CodexProvider
Source§impl Default for CodexProvider
impl Default for CodexProvider
Source§fn default() -> CodexProvider
fn default() -> CodexProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodexProvider
impl RefUnwindSafe for CodexProvider
impl Send for CodexProvider
impl Sync for CodexProvider
impl Unpin for CodexProvider
impl UnsafeUnpin for CodexProvider
impl UnwindSafe for CodexProvider
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