pub struct ToolSecurity {
pub autonomy: ToolAutonomy,
pub workspace_dir: PathBuf,
pub forwarded_env_names: Vec<String>,
}Expand description
SDK-level tool construction policy.
Concrete runtimes can translate this into their own enforcement policy.
Fields§
§autonomy: ToolAutonomy§workspace_dir: PathBuf§forwarded_env_names: Vec<String>Implementations§
Source§impl ToolSecurity
impl ToolSecurity
pub fn with_workspace_dir(workspace_dir: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for ToolSecurity
impl Clone for ToolSecurity
Source§fn clone(&self) -> ToolSecurity
fn clone(&self) -> ToolSecurity
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 ToolSecurity
impl Debug for ToolSecurity
Auto Trait Implementations§
impl Freeze for ToolSecurity
impl RefUnwindSafe for ToolSecurity
impl Send for ToolSecurity
impl Sync for ToolSecurity
impl Unpin for ToolSecurity
impl UnsafeUnpin for ToolSecurity
impl UnwindSafe for ToolSecurity
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