pub struct ToolSecurityPolicy {Show 23 fields
pub read_file: ReadFilePolicy,
pub write_file: WriteFilePolicy,
pub shell: ShellPolicy,
pub url_access: UrlAccessPolicy,
pub enable_write_file: bool,
pub enable_mcp: bool,
pub allowed_mcp_servers: Vec<String>,
pub enable_process_plugin: bool,
pub enable_git: bool,
pub enable_cron: bool,
pub enable_web_search: bool,
pub enable_browser: bool,
pub enable_browser_open: bool,
pub enable_http_request: bool,
pub enable_web_fetch: bool,
pub enable_url_validation: bool,
pub enable_agents_ipc: bool,
pub enable_composio: bool,
pub enable_pushover: bool,
pub enable_wasm_plugins: bool,
pub wasm_global_plugin_dir: Option<PathBuf>,
pub wasm_project_plugin_dir: Option<PathBuf>,
pub wasm_dev_plugin_dir: Option<PathBuf>,
}Fields§
§read_file: ReadFilePolicy§write_file: WriteFilePolicy§shell: ShellPolicy§url_access: UrlAccessPolicy§enable_write_file: bool§enable_mcp: bool§allowed_mcp_servers: Vec<String>§enable_process_plugin: bool§enable_git: bool§enable_cron: bool§enable_web_search: bool§enable_browser: bool§enable_browser_open: bool§enable_http_request: bool§enable_web_fetch: bool§enable_url_validation: bool§enable_agents_ipc: bool§enable_composio: bool§enable_pushover: bool§enable_wasm_plugins: bool§wasm_global_plugin_dir: Option<PathBuf>§wasm_project_plugin_dir: Option<PathBuf>§wasm_dev_plugin_dir: Option<PathBuf>Implementations§
Source§impl ToolSecurityPolicy
impl ToolSecurityPolicy
pub fn default_for_workspace(workspace_root: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for ToolSecurityPolicy
impl Clone for ToolSecurityPolicy
Source§fn clone(&self) -> ToolSecurityPolicy
fn clone(&self) -> ToolSecurityPolicy
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 moreAuto Trait Implementations§
impl Freeze for ToolSecurityPolicy
impl RefUnwindSafe for ToolSecurityPolicy
impl Send for ToolSecurityPolicy
impl Sync for ToolSecurityPolicy
impl Unpin for ToolSecurityPolicy
impl UnsafeUnpin for ToolSecurityPolicy
impl UnwindSafe for ToolSecurityPolicy
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