pub struct AuthSummary {
pub strategy: AuthStrategy,
pub has_anthropic_api_key: bool,
pub has_oauth_token: bool,
pub bedrock_enabled: bool,
pub vertex_enabled: bool,
}Expand description
Snapshot of auth-relevant environment state. Returned by detect
so callers see both the resolved strategy and the raw signals that
drove the decision.
Fields§
§strategy: AuthStrategyThe strategy the CLI will pick under the current env.
has_anthropic_api_key: boolWhether ANTHROPIC_API_KEY is set and non-empty.
has_oauth_token: boolWhether CLAUDE_CODE_OAUTH_TOKEN is set and non-empty.
bedrock_enabled: boolWhether CLAUDE_CODE_USE_BEDROCK is truthy (1, true, etc.).
vertex_enabled: boolWhether CLAUDE_CODE_USE_VERTEX is truthy.
Trait Implementations§
Source§impl Clone for AuthSummary
impl Clone for AuthSummary
Source§fn clone(&self) -> AuthSummary
fn clone(&self) -> AuthSummary
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 AuthSummary
impl Debug for AuthSummary
Auto Trait Implementations§
impl Freeze for AuthSummary
impl RefUnwindSafe for AuthSummary
impl Send for AuthSummary
impl Sync for AuthSummary
impl Unpin for AuthSummary
impl UnsafeUnpin for AuthSummary
impl UnwindSafe for AuthSummary
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