Skip to main content

AuthContext

Trait AuthContext 

Source
pub trait AuthContext: Send + Sync {
    // Required method
    fn env(&self, name: &str) -> Option<String>;
}
Expand description

Ambient environment access for credential resolution.

Required Methods§

Source

fn env(&self, name: &str) -> Option<String>

Read an environment variable, treating blank values as unset — a blank DEEPSEEK_API_KEY= is a leftover export, not a credential.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§