pub struct PermissionSetUpdate {
pub allowed_tools: Option<Vec<String>>,
pub allowed_roles: Option<Vec<String>>,
pub resource_permissions: Option<Vec<ResourcePermission>>,
pub max_budget_per_run_usd: Option<f64>,
pub max_spawn_depth: Option<i64>,
pub can_spawn: Option<bool>,
pub can_self_modify: Option<bool>,
pub parent_agent_id: Option<String>,
}Expand description
Body of PUT /governance/permissions/{agentId}. Every field optional: a field the body omits
keeps its stored value (mergePermissionSet), and only a first write falls back to the
defaults. agent_id, tenant_id, created_at, updated_at are set by the server and
ignored in the body.
Fields§
§allowed_tools: Option<Vec<String>>Sending this field REPLACES the stored list (the handler stores the array as sent, it does not merge).
allowed_roles: Option<Vec<String>>Sending this field REPLACES the stored list (the handler stores the array as sent, it does not merge).
resource_permissions: Option<Vec<ResourcePermission>>Sending this field REPLACES the stored list (the handler stores the array as sent, it does not merge).
max_budget_per_run_usd: Option<f64>§max_spawn_depth: Option<i64>§can_spawn: Option<bool>§can_self_modify: Option<bool>§parent_agent_id: Option<String>Trait Implementations§
Source§impl Clone for PermissionSetUpdate
impl Clone for PermissionSetUpdate
Source§fn clone(&self) -> PermissionSetUpdate
fn clone(&self) -> PermissionSetUpdate
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 PermissionSetUpdate
impl Debug for PermissionSetUpdate
Source§impl Default for PermissionSetUpdate
impl Default for PermissionSetUpdate
Source§fn default() -> PermissionSetUpdate
fn default() -> PermissionSetUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionSetUpdate
impl<'de> Deserialize<'de> for PermissionSetUpdate
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
Source§impl PartialEq for PermissionSetUpdate
impl PartialEq for PermissionSetUpdate
Source§impl Serialize for PermissionSetUpdate
impl Serialize for PermissionSetUpdate
impl StructuralPartialEq for PermissionSetUpdate
Auto Trait Implementations§
impl Freeze for PermissionSetUpdate
impl RefUnwindSafe for PermissionSetUpdate
impl Send for PermissionSetUpdate
impl Sync for PermissionSetUpdate
impl Unpin for PermissionSetUpdate
impl UnsafeUnpin for PermissionSetUpdate
impl UnwindSafe for PermissionSetUpdate
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