pub enum CredentialSourceSpec {
InlineSecret {
secret: String,
},
ManagedStore,
Env {
env: String,
fallback: Vec<String>,
},
ExternalResolver {
handle: String,
},
PlatformDefault,
Command {
program: PathBuf,
args: Vec<String>,
cwd: Option<PathBuf>,
env: BTreeMap<String, String>,
timeout_ms: u64,
refresh_interval_ms: Option<u64>,
},
FileDescriptor {
fd: i32,
scope_override: Option<String>,
},
}Expand description
Where credentials come from.
Variants§
InlineSecret
ManagedStore
Binding-scoped credential material stored in the configured
TokenStore. The storage key is the
resolved typed binding identity (realm, binding), not a
second free-form profile string.
Env
Fields
ExternalResolver
PlatformDefault
Command
External command that prints a bearer token on stdout. Reference:
Codex external_bearer.rs:17-157. The runner lives in
meerkat-client/src/auth_store/command.rs.
Fields
FileDescriptor
Read credentials from an inherited file descriptor (Claude Code pattern for sandboxed host-injected tokens).
Implementations§
Source§impl CredentialSourceSpec
impl CredentialSourceSpec
pub const ALL_KIND_LABELS: &'static [&'static str]
pub const fn kind_label(&self) -> &'static str
Trait Implementations§
Source§impl Clone for CredentialSourceSpec
impl Clone for CredentialSourceSpec
Source§fn clone(&self) -> CredentialSourceSpec
fn clone(&self) -> CredentialSourceSpec
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 CredentialSourceSpec
impl Debug for CredentialSourceSpec
Source§impl<'de> Deserialize<'de> for CredentialSourceSpec
impl<'de> Deserialize<'de> for CredentialSourceSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CredentialSourceSpec
impl JsonSchema for CredentialSourceSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CredentialSourceSpec
impl PartialEq for CredentialSourceSpec
Source§fn eq(&self, other: &CredentialSourceSpec) -> bool
fn eq(&self, other: &CredentialSourceSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CredentialSourceSpec
impl Serialize for CredentialSourceSpec
impl Eq for CredentialSourceSpec
impl StructuralPartialEq for CredentialSourceSpec
Auto Trait Implementations§
impl Freeze for CredentialSourceSpec
impl RefUnwindSafe for CredentialSourceSpec
impl Send for CredentialSourceSpec
impl Sync for CredentialSourceSpec
impl Unpin for CredentialSourceSpec
impl UnsafeUnpin for CredentialSourceSpec
impl UnwindSafe for CredentialSourceSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.