pub struct AlternativeToolPolicy {
pub allow: bool,
pub fs_write: bool,
pub network: bool,
pub args_policy: Option<AlternativeArgsPolicy>,
}
Expand description
Tool policy in alternative format
Fields§
§allow: bool
Whether to allow this tool
fs_write: bool
Allow filesystem writes (optional)
network: bool
Allow network access (optional)
args_policy: Option<AlternativeArgsPolicy>
Arguments policy (optional)
Trait Implementations§
Source§impl Clone for AlternativeToolPolicy
impl Clone for AlternativeToolPolicy
Source§fn clone(&self) -> AlternativeToolPolicy
fn clone(&self) -> AlternativeToolPolicy
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 AlternativeToolPolicy
impl Debug for AlternativeToolPolicy
Source§impl<'de> Deserialize<'de> for AlternativeToolPolicy
impl<'de> Deserialize<'de> for AlternativeToolPolicy
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 AlternativeToolPolicy
impl RefUnwindSafe for AlternativeToolPolicy
impl Send for AlternativeToolPolicy
impl Sync for AlternativeToolPolicy
impl Unpin for AlternativeToolPolicy
impl UnwindSafe for AlternativeToolPolicy
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