pub struct ModelSection {
pub provider: String,
pub model: String,
pub api_key_env: String,
pub max_output_tokens: u32,
pub temperature: f32,
pub request_timeout_secs: u64,
pub region: Option<String>,
pub region_env: String,
pub price_per_mtok: Option<f64>,
}Fields§
§provider: String§model: String§api_key_env: String§max_output_tokens: u32§temperature: f32§request_timeout_secs: u64§region: Option<String>AWS Bedrock: literal region (e.g. us-east-1). Takes precedence over
region_env. #[serde(default)] keeps existing project.toml loading.
region_env: StringAWS Bedrock: env-var name that holds the region. Defaults to
"AWS_REGION" via default_region_env(). Consulted only when
region is None. #[serde(default)] keeps existing project.toml
loading cleanly.
price_per_mtok: Option<f64>v1.5: override the built-in $/MTok price table for the ROI ledger.
When set, this value is used for USD conversion instead of the
approximate built-in table. Useful for private-endpoint pricing or
non-standard model deployments. #[serde(default)] keeps all
pre-v1.5 project.toml files loading cleanly (they get None).
Trait Implementations§
Source§impl Clone for ModelSection
impl Clone for ModelSection
Source§fn clone(&self) -> ModelSection
fn clone(&self) -> ModelSection
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 ModelSection
impl Debug for ModelSection
Source§impl Default for ModelSection
impl Default for ModelSection
Source§impl<'de> Deserialize<'de> for ModelSection
impl<'de> Deserialize<'de> for ModelSection
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 ModelSection
impl RefUnwindSafe for ModelSection
impl Send for ModelSection
impl Sync for ModelSection
impl Unpin for ModelSection
impl UnsafeUnpin for ModelSection
impl UnwindSafe for ModelSection
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