pub struct ProviderConfigToml {Show 14 fields
pub api_key: Option<String>,
pub base_url: Option<String>,
pub model: Option<String>,
pub context_window: Option<u32>,
pub mode: Option<String>,
pub wire: Option<String>,
pub auth_mode: Option<String>,
pub insecure_skip_tls_verify: Option<bool>,
pub http_headers: BTreeMap<String, String>,
pub path_suffix: Option<String>,
pub auth: Option<ProviderAuthSourceToml>,
pub external_credentials: Option<ExternalCredentialConsentToml>,
pub oauth_credential_generation: Option<String>,
pub extras: BTreeMap<String, Value>,
}Fields§
§api_key: Option<String>§base_url: Option<String>§model: Option<String>§context_window: Option<u32>§mode: Option<String>§wire: Option<String>Wire dialect preference for dual-protocol vendors (DeepSeek, MiniMax,
Model Studio): openai (Chat Completions, default) or anthropic
(Messages). Not a separate catalog provider — a power-user toggle.
auth_mode: Option<String>§insecure_skip_tls_verify: Option<bool>§http_headers: BTreeMap<String, String>§path_suffix: Option<String>§auth: Option<ProviderAuthSourceToml>§external_credentials: Option<ExternalCredentialConsentToml>Explicit consent for reading one exact credential file owned by another CLI. Absence means disabled and must not trigger discovery.
oauth_credential_generation: Option<String>Codewhale-owned xAI OAuth generation selected by config. The value is a
validated basename under $CODEWHALE_HOME/credentials, never an
arbitrary path.
extras: BTreeMap<String, Value>Preserve provider fields introduced by newer Codewhale versions and by custom provider adapters when an older typed writer saves this file.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderConfigToml
impl Clone for ProviderConfigToml
Source§fn clone(&self) -> ProviderConfigToml
fn clone(&self) -> ProviderConfigToml
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 ProviderConfigToml
impl Debug for ProviderConfigToml
Source§impl Default for ProviderConfigToml
impl Default for ProviderConfigToml
Source§fn default() -> ProviderConfigToml
fn default() -> ProviderConfigToml
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderConfigToml
impl<'de> Deserialize<'de> for ProviderConfigToml
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
Auto Trait Implementations§
impl Freeze for ProviderConfigToml
impl RefUnwindSafe for ProviderConfigToml
impl Send for ProviderConfigToml
impl Sync for ProviderConfigToml
impl Unpin for ProviderConfigToml
impl UnsafeUnpin for ProviderConfigToml
impl UnwindSafe for ProviderConfigToml
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