pub enum ToolsOption {
List(Vec<String>),
Preset(ToolsPreset),
}Expand description
Tools configuration.
Either provide an explicit list of tool names or use Claude Code’s preset tools.
§Variants
List— An explicit list of tool name strings.Preset— Use Claude Code’s default tool set viaToolsPreset.
Variants§
List(Vec<String>)
Explicit list of allowed tool names.
Preset(ToolsPreset)
Use the default Claude Code tools preset.
Trait Implementations§
Source§impl Clone for ToolsOption
impl Clone for ToolsOption
Source§fn clone(&self) -> ToolsOption
fn clone(&self) -> ToolsOption
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 Debug for ToolsOption
impl Debug for ToolsOption
Source§impl<'de> Deserialize<'de> for ToolsOption
impl<'de> Deserialize<'de> for ToolsOption
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 ToolsOption
impl PartialEq for ToolsOption
Source§impl Serialize for ToolsOption
impl Serialize for ToolsOption
impl StructuralPartialEq for ToolsOption
Auto Trait Implementations§
impl Freeze for ToolsOption
impl RefUnwindSafe for ToolsOption
impl Send for ToolsOption
impl Sync for ToolsOption
impl Unpin for ToolsOption
impl UnsafeUnpin for ToolsOption
impl UnwindSafe for ToolsOption
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