pub struct TransportOptions {Show 46 fields
pub tools: Vec<String>,
pub tools_set: bool,
pub tools_preset: Option<ToolsPreset>,
pub allowed_tools: Vec<String>,
pub system_prompt: Option<String>,
pub system_prompt_preset: Option<SystemPromptPreset>,
pub system_prompt_file: Option<SystemPromptFile>,
pub mcp_servers: HashMap<String, MCPServerConfig>,
pub mcp_servers_config: Option<String>,
pub permission_mode: Option<PermissionMode>,
pub continue_conversation: bool,
pub resume: Option<String>,
pub session_id: Option<String>,
pub fork_session: bool,
pub max_turns: Option<i32>,
pub max_budget_usd: Option<f64>,
pub task_budget: Option<TaskBudget>,
pub disallowed_tools: Vec<String>,
pub model: Option<String>,
pub fallback_model: Option<String>,
pub betas: Vec<SdkBeta>,
pub permission_prompt_tool_name: Option<String>,
pub cwd: Option<String>,
pub cli_path: Option<String>,
pub settings: Option<String>,
pub add_dirs: Vec<String>,
pub env: HashMap<String, String>,
pub extra_args: HashMap<String, Option<String>>,
pub max_buffer_size: Option<usize>,
pub user: Option<String>,
pub include_partial_messages: bool,
pub include_hook_events: bool,
pub strict_mcp_config: bool,
pub setting_sources: Option<Vec<SettingSource>>,
pub skills: Option<SkillsConfig>,
pub sandbox: Option<SandboxSettings>,
pub plugins: Vec<SDKPluginConfig>,
pub max_thinking_tokens: Option<i32>,
pub thinking: Option<ThinkingConfig>,
pub effort: Option<String>,
pub output_format: Option<Map<String, Value>>,
pub enable_file_checkpointing: bool,
pub stderr: Option<StderrCallback>,
pub can_use_tool: Option<CanUseToolCallback>,
pub sdk_mcp_servers: HashMap<String, SimpleMCPServer>,
pub session_store_enabled: bool,
}Fields§
§tools: Vec<String>§tools_set: bool§tools_preset: Option<ToolsPreset>§allowed_tools: Vec<String>§system_prompt: Option<String>§system_prompt_preset: Option<SystemPromptPreset>§system_prompt_file: Option<SystemPromptFile>§mcp_servers: HashMap<String, MCPServerConfig>§mcp_servers_config: Option<String>§permission_mode: Option<PermissionMode>§continue_conversation: bool§resume: Option<String>§session_id: Option<String>§fork_session: bool§max_turns: Option<i32>§max_budget_usd: Option<f64>§task_budget: Option<TaskBudget>§disallowed_tools: Vec<String>§model: Option<String>§fallback_model: Option<String>§betas: Vec<SdkBeta>§permission_prompt_tool_name: Option<String>§cwd: Option<String>§cli_path: Option<String>§settings: Option<String>§add_dirs: Vec<String>§env: HashMap<String, String>§extra_args: HashMap<String, Option<String>>§max_buffer_size: Option<usize>§user: Option<String>§include_partial_messages: bool§include_hook_events: bool§strict_mcp_config: bool§setting_sources: Option<Vec<SettingSource>>§skills: Option<SkillsConfig>§sandbox: Option<SandboxSettings>§plugins: Vec<SDKPluginConfig>§max_thinking_tokens: Option<i32>§thinking: Option<ThinkingConfig>§effort: Option<String>§output_format: Option<Map<String, Value>>§enable_file_checkpointing: bool§stderr: Option<StderrCallback>§can_use_tool: Option<CanUseToolCallback>§sdk_mcp_servers: HashMap<String, SimpleMCPServer>§session_store_enabled: boolTrait Implementations§
Source§impl Clone for TransportOptions
impl Clone for TransportOptions
Source§fn clone(&self) -> TransportOptions
fn clone(&self) -> TransportOptions
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 TransportOptions
impl Debug for TransportOptions
Source§impl From<&ClaudeAgentOptions> for TransportOptions
impl From<&ClaudeAgentOptions> for TransportOptions
Source§fn from(opts: &ClaudeAgentOptions) -> Self
fn from(opts: &ClaudeAgentOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TransportOptions
impl !UnwindSafe for TransportOptions
impl Freeze for TransportOptions
impl Send for TransportOptions
impl Sync for TransportOptions
impl Unpin for TransportOptions
impl UnsafeUnpin for TransportOptions
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