pub struct SpawnPolicyUpdate {
pub child_budget_ratio: f64,
pub max_depth: i64,
pub allowed_roles: Vec<String>,
pub require_approval_above_depth: i64,
pub max_children_per_agent: i64,
}Expand description
Body of PUT /governance/permissions/spawn-policy. The handler requires the whole record
(requireWholeRecord): all five fields, every time; tenant_id is the caller’s and is not
accepted in the body.
Fields§
§child_budget_ratio: f64Child agent gets at most this fraction of parent’s budget.
max_depth: i64§allowed_roles: Vec<String>Whole-record write: the array is stored as sent, REPLACING the stored list.
require_approval_above_depth: i64§max_children_per_agent: i64Trait Implementations§
Source§impl Clone for SpawnPolicyUpdate
impl Clone for SpawnPolicyUpdate
Source§fn clone(&self) -> SpawnPolicyUpdate
fn clone(&self) -> SpawnPolicyUpdate
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 SpawnPolicyUpdate
impl Debug for SpawnPolicyUpdate
Source§impl Default for SpawnPolicyUpdate
impl Default for SpawnPolicyUpdate
Source§fn default() -> SpawnPolicyUpdate
fn default() -> SpawnPolicyUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpawnPolicyUpdate
impl<'de> Deserialize<'de> for SpawnPolicyUpdate
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 SpawnPolicyUpdate
impl PartialEq for SpawnPolicyUpdate
Source§impl Serialize for SpawnPolicyUpdate
impl Serialize for SpawnPolicyUpdate
impl StructuralPartialEq for SpawnPolicyUpdate
Auto Trait Implementations§
impl Freeze for SpawnPolicyUpdate
impl RefUnwindSafe for SpawnPolicyUpdate
impl Send for SpawnPolicyUpdate
impl Sync for SpawnPolicyUpdate
impl Unpin for SpawnPolicyUpdate
impl UnsafeUnpin for SpawnPolicyUpdate
impl UnwindSafe for SpawnPolicyUpdate
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