Skip to main content

TransportOptions

Struct TransportOptions 

Source
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: bool

Trait Implementations§

Source§

impl Clone for TransportOptions

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransportOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&ClaudeAgentOptions> for TransportOptions

Source§

fn from(opts: &ClaudeAgentOptions) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more