pub struct FallbackParam {
pub model: ClaudeModel,
pub max_tokens: Option<u64>,
pub output_config: Option<OutputConfig>,
pub speed: Option<Speed>,
pub thinking: Option<ThinkingConfig>,
pub extra: JsonObject,
}Expand description
One ordered entry of the request-level fallbacks chain.
Fields§
§model: ClaudeModel§max_tokens: Option<u64>§output_config: Option<OutputConfig>§speed: Option<Speed>§thinking: Option<ThinkingConfig>§extra: JsonObjectTrait Implementations§
Source§impl Clone for FallbackParam
impl Clone for FallbackParam
Source§fn clone(&self) -> FallbackParam
fn clone(&self) -> FallbackParam
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 FallbackParam
impl Debug for FallbackParam
Source§impl<'de> Deserialize<'de> for FallbackParam
impl<'de> Deserialize<'de> for FallbackParam
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 PartialEq for FallbackParam
impl PartialEq for FallbackParam
Source§impl Serialize for FallbackParam
impl Serialize for FallbackParam
impl StructuralPartialEq for FallbackParam
Auto Trait Implementations§
impl Freeze for FallbackParam
impl RefUnwindSafe for FallbackParam
impl Send for FallbackParam
impl Sync for FallbackParam
impl Unpin for FallbackParam
impl UnsafeUnpin for FallbackParam
impl UnwindSafe for FallbackParam
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