pub struct ClaudeCodeOptions {Show 14 fields
pub allowed_tools: Vec<String>,
pub max_thinking_tokens: u32,
pub system_prompt: Option<String>,
pub append_system_prompt: Option<String>,
pub mcp_tools: Vec<String>,
pub mcp_servers: HashMap<String, McpServerConfig>,
pub permission_mode: Option<PermissionMode>,
pub continue_conversation: bool,
pub resume: Option<String>,
pub max_turns: Option<u32>,
pub disallowed_tools: Vec<String>,
pub model: Option<String>,
pub permission_prompt_tool_name: Option<String>,
pub cwd: Option<PathBuf>,
}Expand description
Query options for Claude SDK
Fields§
§allowed_tools: Vec<String>§max_thinking_tokens: u32§system_prompt: Option<String>§append_system_prompt: Option<String>§mcp_tools: Vec<String>§mcp_servers: HashMap<String, McpServerConfig>§permission_mode: Option<PermissionMode>§continue_conversation: bool§resume: Option<String>§max_turns: Option<u32>§disallowed_tools: Vec<String>§model: Option<String>§permission_prompt_tool_name: Option<String>§cwd: Option<PathBuf>Implementations§
Trait Implementations§
Source§impl Clone for ClaudeCodeOptions
impl Clone for ClaudeCodeOptions
Source§fn clone(&self) -> ClaudeCodeOptions
fn clone(&self) -> ClaudeCodeOptions
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 ClaudeCodeOptions
impl Debug for ClaudeCodeOptions
Auto Trait Implementations§
impl Freeze for ClaudeCodeOptions
impl RefUnwindSafe for ClaudeCodeOptions
impl Send for ClaudeCodeOptions
impl Sync for ClaudeCodeOptions
impl Unpin for ClaudeCodeOptions
impl UnwindSafe for ClaudeCodeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more