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§impl Debug for ToolSecurity
impl Debug for ToolSecurity
Auto Trait Implementations§
impl Forget for ToolSecurity
impl Freeze for ToolSecurity
impl Move for ToolSecurity
impl RefUnwindSafe for ToolSecurity
impl Send for ToolSecuritywhere
RawVecInner: Send,
impl Sync for ToolSecuritywhere
RawVecInner: Sync,
impl Unpin for ToolSecurity
impl UnsafeUnpin for ToolSecuritywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ToolSecuritywhere
RawVecInner: UnwindSafe,
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