pub struct IFlowOptions {
pub cwd: PathBuf,
pub mcp_servers: Vec<McpServer>,
pub timeout: f64,
pub metadata: HashMap<String, Value>,
pub file_access: FileAccessConfig,
pub process: ProcessConfig,
pub auth_method_id: Option<String>,
pub logging: LoggingConfig,
pub websocket: Option<WebSocketConfig>,
pub permission_mode: PermissionMode,
}Expand description
Configuration options for iFlow SDK
This struct contains all the configuration options for the iFlow SDK, including connection settings, security options, and logging configuration.
Fields§
§cwd: PathBufCurrent working directory
mcp_servers: Vec<McpServer>MCP servers to connect to
timeout: f64Request timeout in seconds
metadata: HashMap<String, Value>Additional metadata to include in requests
file_access: FileAccessConfigFile access configuration
process: ProcessConfigProcess management configuration
auth_method_id: Option<String>Authentication method ID
logging: LoggingConfigLogging configuration
websocket: Option<WebSocketConfig>WebSocket configuration (if None, use stdio)
permission_mode: PermissionModePermission mode for tool calls
Implementations§
Source§impl IFlowOptions
impl IFlowOptions
Sourcepub fn with_timeout(self, timeout: f64) -> Self
pub fn with_timeout(self, timeout: f64) -> Self
Sourcepub fn with_mcp_servers(self, servers: Vec<McpServer>) -> Self
pub fn with_mcp_servers(self, servers: Vec<McpServer>) -> Self
Sourcepub fn with_metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn with_metadata(self, metadata: HashMap<String, Value>) -> Self
Sourcepub fn with_file_access_config(self, config: FileAccessConfig) -> Self
pub fn with_file_access_config(self, config: FileAccessConfig) -> Self
Sourcepub fn with_process_config(self, config: ProcessConfig) -> Self
pub fn with_process_config(self, config: ProcessConfig) -> Self
Sourcepub fn with_auto_start(self, auto_start: bool) -> Self
pub fn with_auto_start(self, auto_start: bool) -> Self
Sourcepub fn with_auth_method_id(self, method_id: String) -> Self
pub fn with_auth_method_id(self, method_id: String) -> Self
Sourcepub fn with_logging_config(self, config: LoggingConfig) -> Self
pub fn with_logging_config(self, config: LoggingConfig) -> Self
Sourcepub fn with_websocket_config(self, config: WebSocketConfig) -> Self
pub fn with_websocket_config(self, config: WebSocketConfig) -> Self
Sourcepub fn with_permission_mode(self, mode: PermissionMode) -> Self
pub fn with_permission_mode(self, mode: PermissionMode) -> Self
Trait Implementations§
Source§impl Clone for IFlowOptions
impl Clone for IFlowOptions
Source§fn clone(&self) -> IFlowOptions
fn clone(&self) -> IFlowOptions
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 IFlowOptions
impl Debug for IFlowOptions
Auto Trait Implementations§
impl Freeze for IFlowOptions
impl RefUnwindSafe for IFlowOptions
impl Send for IFlowOptions
impl Sync for IFlowOptions
impl Unpin for IFlowOptions
impl UnwindSafe for IFlowOptions
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