pub struct ToolConfig {
pub allowed_tools: Vec<String>,
pub max_turns: Option<u32>,
}Expand description
Configuration for Claude Code tool access in headless mode
Fields§
§allowed_tools: Vec<String>Tools to auto-approve (e.g., “Read”, “Write”, “Grep”, “Glob”)
max_turns: Option<u32>Maximum agentic turns before stopping
Implementations§
Trait Implementations§
Source§impl Clone for ToolConfig
impl Clone for ToolConfig
Source§fn clone(&self) -> ToolConfig
fn clone(&self) -> ToolConfig
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 ToolConfig
impl Debug for ToolConfig
Source§impl Default for ToolConfig
impl Default for ToolConfig
Source§fn default() -> ToolConfig
fn default() -> ToolConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolConfig
impl RefUnwindSafe for ToolConfig
impl Send for ToolConfig
impl Sync for ToolConfig
impl Unpin for ToolConfig
impl UnwindSafe for ToolConfig
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