pub struct ThreadOptions {
pub model: Option<String>,
pub sandbox_mode: Option<SandboxMode>,
pub working_directory: Option<String>,
pub skip_git_repo_check: Option<bool>,
pub model_reasoning_effort: Option<ModelReasoningEffort>,
pub network_access_enabled: Option<bool>,
pub web_search_mode: Option<WebSearchMode>,
pub web_search_enabled: Option<bool>,
pub approval_policy: Option<ApprovalMode>,
pub additional_directories: Vec<String>,
}Expand description
Per-thread options controlling model, sandbox, and behavior.
Fields§
§model: Option<String>§sandbox_mode: Option<SandboxMode>§working_directory: Option<String>§skip_git_repo_check: Option<bool>§model_reasoning_effort: Option<ModelReasoningEffort>§network_access_enabled: Option<bool>§web_search_mode: Option<WebSearchMode>§web_search_enabled: Option<bool>§approval_policy: Option<ApprovalMode>§additional_directories: Vec<String>Trait Implementations§
Source§impl Clone for ThreadOptions
impl Clone for ThreadOptions
Source§fn clone(&self) -> ThreadOptions
fn clone(&self) -> ThreadOptions
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 ThreadOptions
impl Debug for ThreadOptions
Source§impl Default for ThreadOptions
impl Default for ThreadOptions
Source§fn default() -> ThreadOptions
fn default() -> ThreadOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThreadOptions
impl<'de> Deserialize<'de> for ThreadOptions
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
Auto Trait Implementations§
impl Freeze for ThreadOptions
impl RefUnwindSafe for ThreadOptions
impl Send for ThreadOptions
impl Sync for ThreadOptions
impl Unpin for ThreadOptions
impl UnsafeUnpin for ThreadOptions
impl UnwindSafe for ThreadOptions
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