pub enum ResponsesToolChoice {
Mode(String),
Named(ResponsesNamedToolChoice),
}Expand description
tool_choice: a bare mode string ("auto"/"none"/"required") or the flat named
object. Untagged so it serialises as a bare string or the object, matching the wire.
Variants§
Mode(String)
Named(ResponsesNamedToolChoice)
Implementations§
Trait Implementations§
Source§impl Clone for ResponsesToolChoice
impl Clone for ResponsesToolChoice
Source§fn clone(&self) -> ResponsesToolChoice
fn clone(&self) -> ResponsesToolChoice
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 ResponsesToolChoice
impl Debug for ResponsesToolChoice
Source§impl<'de> Deserialize<'de> for ResponsesToolChoice
impl<'de> Deserialize<'de> for ResponsesToolChoice
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 ResponsesToolChoice
impl PartialEq for ResponsesToolChoice
Source§impl Serialize for ResponsesToolChoice
impl Serialize for ResponsesToolChoice
impl StructuralPartialEq for ResponsesToolChoice
Auto Trait Implementations§
impl Freeze for ResponsesToolChoice
impl RefUnwindSafe for ResponsesToolChoice
impl Send for ResponsesToolChoice
impl Sync for ResponsesToolChoice
impl Unpin for ResponsesToolChoice
impl UnsafeUnpin for ResponsesToolChoice
impl UnwindSafe for ResponsesToolChoice
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