pub enum AmbientFormat {
ClaudeCode,
Codex,
ApiKeyEnv,
}Expand description
Which foreign credential format an AmbientSpec names (auth §5.5). A closed
enum, not a JSON-pointer DSL: each shape needs a parser anyway, so one variant
per known source is less mechanism than a speculative mapping language. The
variant ALSO tells the bz discover impl where to read: a file (ClaudeCode)
or a process env var (ApiKeyEnv).
Variants§
ClaudeCode
Codex
The Codex CLI’s ~/.codex/auth.json: the ChatGPT-SSO sign-in that tool
already holds, read on a store miss so a box signed in with codex login
answers bz --provider openai-chatgpt with no bz --login of its own.
ApiKeyEnv
A process environment variable whose VALUE is a raw API key — the
vendor-conventional alias (e.g. ANTHROPIC_API_KEY) as a ROW-SCOPED, store-miss
ambient source, so a stray vendor key can reach only the row that names it and
never shadows a stored cred (AmbientSpec.path is the variable name).
Trait Implementations§
Source§impl Clone for AmbientFormat
impl Clone for AmbientFormat
Source§fn clone(&self) -> AmbientFormat
fn clone(&self) -> AmbientFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AmbientFormat
Source§impl Debug for AmbientFormat
impl Debug for AmbientFormat
Source§impl<'de> Deserialize<'de> for AmbientFormat
impl<'de> Deserialize<'de> for AmbientFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AmbientFormat
Source§impl PartialEq for AmbientFormat
impl PartialEq for AmbientFormat
Source§impl Serialize for AmbientFormat
impl Serialize for AmbientFormat
impl StructuralPartialEq for AmbientFormat
Auto Trait Implementations§
impl Freeze for AmbientFormat
impl RefUnwindSafe for AmbientFormat
impl Send for AmbientFormat
impl Sync for AmbientFormat
impl Unpin for AmbientFormat
impl UnsafeUnpin for AmbientFormat
impl UnwindSafe for AmbientFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.