pub struct PermissionSpec {
pub allow_write: bool,
pub allow_network: bool,
pub deny_all_tools: bool,
pub allowed_tools: Vec<String>,
pub file_scope: Vec<String>,
}Fields§
§allow_write: bool§allow_network: bool§deny_all_tools: boolExpose no tools to the child. This is distinct from an empty
allowed_tools list, which preserves the role’s default tool surface.
allowed_tools: Vec<String>§file_scope: Vec<String>Trait Implementations§
Source§impl Clone for PermissionSpec
impl Clone for PermissionSpec
Source§fn clone(&self) -> PermissionSpec
fn clone(&self) -> PermissionSpec
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 PermissionSpec
impl Debug for PermissionSpec
Source§impl Default for PermissionSpec
impl Default for PermissionSpec
Source§fn default() -> PermissionSpec
fn default() -> PermissionSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionSpec
impl<'de> Deserialize<'de> for PermissionSpec
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
impl Eq for PermissionSpec
Source§impl PartialEq for PermissionSpec
impl PartialEq for PermissionSpec
Source§impl Serialize for PermissionSpec
impl Serialize for PermissionSpec
impl StructuralPartialEq for PermissionSpec
Auto Trait Implementations§
impl Freeze for PermissionSpec
impl RefUnwindSafe for PermissionSpec
impl Send for PermissionSpec
impl Sync for PermissionSpec
impl Unpin for PermissionSpec
impl UnsafeUnpin for PermissionSpec
impl UnwindSafe for PermissionSpec
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