pub struct Configuration {
pub alias_name: String,
pub token: String,
pub url: String,
pub model: Option<String>,
pub small_fast_model: Option<String>,
pub max_thinking_tokens: Option<u32>,
pub api_timeout_ms: Option<u32>,
pub claude_code_disable_nonessential_traffic: Option<u32>,
pub anthropic_default_sonnet_model: Option<String>,
pub anthropic_default_opus_model: Option<String>,
pub anthropic_default_haiku_model: Option<String>,
}Expand description
Represents a Claude API configuration
Contains the components needed to configure Claude API access:
- alias_name: User-friendly identifier for the configuration
- token: API authentication token
- url: Base URL for the API endpoint
- model: Optional custom model name
- small_fast_model: Optional Haiku-class model for background tasks
Fields§
§alias_name: StringUser-friendly alias name for this configuration
token: StringANTHROPIC_AUTH_TOKEN value (API authentication token)
url: StringANTHROPIC_BASE_URL value (API endpoint URL)
model: Option<String>ANTHROPIC_MODEL value (custom model name)
small_fast_model: Option<String>ANTHROPIC_SMALL_FAST_MODEL value (Haiku-class model for background tasks)
max_thinking_tokens: Option<u32>ANTHROPIC_MAX_THINKING_TOKENS value (Maximum thinking tokens limit)
api_timeout_ms: Option<u32>API timeout in milliseconds
claude_code_disable_nonessential_traffic: Option<u32>Disable non-essential traffic flag
anthropic_default_sonnet_model: Option<String>Default Sonnet model name
anthropic_default_opus_model: Option<String>Default Opus model name
anthropic_default_haiku_model: Option<String>Default Haiku model name
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for Configuration
impl Default for Configuration
Source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
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 Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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