#[non_exhaustive]pub enum ResponseAllowedTool {
Show 14 variants
Function {
name: String,
extra: Extra,
},
Custom {
name: String,
extra: Extra,
},
Mcp {
server_label: String,
name: Option<String>,
extra: Extra,
},
FileSearch {
extra: Extra,
},
WebSearchPreview {
extra: Extra,
},
Computer {
extra: Extra,
},
ComputerUsePreview {
extra: Extra,
},
ComputerUse {
extra: Extra,
},
WebSearchPreview20250311 {
extra: Extra,
},
ImageGeneration {
extra: Extra,
},
CodeInterpreter {
extra: Extra,
},
LocalShell {
extra: Extra,
},
Shell {
extra: Extra,
},
ApplyPatch {
extra: Extra,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Function
Custom
Mcp
FileSearch
WebSearchPreview
Computer
ComputerUsePreview
ComputerUse
WebSearchPreview20250311
ImageGeneration
CodeInterpreter
LocalShell
Shell
ApplyPatch
Trait Implementations§
Source§impl Clone for ResponseAllowedTool
impl Clone for ResponseAllowedTool
Source§fn clone(&self) -> ResponseAllowedTool
fn clone(&self) -> ResponseAllowedTool
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 ResponseAllowedTool
impl Debug for ResponseAllowedTool
Source§impl<'de> Deserialize<'de> for ResponseAllowedTool
impl<'de> Deserialize<'de> for ResponseAllowedTool
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 ResponseAllowedTool
impl PartialEq for ResponseAllowedTool
Source§impl Serialize for ResponseAllowedTool
impl Serialize for ResponseAllowedTool
impl StructuralPartialEq for ResponseAllowedTool
Auto Trait Implementations§
impl Freeze for ResponseAllowedTool
impl RefUnwindSafe for ResponseAllowedTool
impl Send for ResponseAllowedTool
impl Sync for ResponseAllowedTool
impl Unpin for ResponseAllowedTool
impl UnsafeUnpin for ResponseAllowedTool
impl UnwindSafe for ResponseAllowedTool
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