pub struct PermissionUpdate {
pub allowed_tools: Option<HashSet<String>>,
pub allowed_paths: Option<Vec<String>>,
pub denied_paths: Option<Vec<String>>,
pub network_access: Option<bool>,
pub max_execution_time_secs: Option<u64>,
pub max_memory_mb: Option<u64>,
pub can_fork: Option<bool>,
}Expand description
Update struct for permission changes (partial updates).
Fields§
§allowed_tools: Option<HashSet<String>>Set of allowed tool names.
allowed_paths: Option<Vec<String>>Allowed path patterns (glob).
denied_paths: Option<Vec<String>>Denied path patterns (glob).
network_access: Option<bool>Whether this agent can make network requests.
max_execution_time_secs: Option<u64>Maximum execution time in seconds (0 = unlimited).
max_memory_mb: Option<u64>Maximum memory in MB (0 = unlimited).
can_fork: Option<bool>Whether this agent can spawn sub-agents.
Implementations§
Source§impl PermissionUpdate
impl PermissionUpdate
Sourcepub fn apply(&self, perms: &mut AgentPermissions)
pub fn apply(&self, perms: &mut AgentPermissions)
Apply this update to a permission set.
Trait Implementations§
Source§impl Clone for PermissionUpdate
impl Clone for PermissionUpdate
Source§fn clone(&self) -> PermissionUpdate
fn clone(&self) -> PermissionUpdate
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 PermissionUpdate
impl Debug for PermissionUpdate
Source§impl Default for PermissionUpdate
impl Default for PermissionUpdate
Source§fn default() -> PermissionUpdate
fn default() -> PermissionUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionUpdate
impl<'de> Deserialize<'de> for PermissionUpdate
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 PermissionUpdate
impl RefUnwindSafe for PermissionUpdate
impl Send for PermissionUpdate
impl Sync for PermissionUpdate
impl Unpin for PermissionUpdate
impl UnsafeUnpin for PermissionUpdate
impl UnwindSafe for PermissionUpdate
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