pub struct RiskProfileDef {
pub failure_mode: Option<FailureMode>,
pub approval_required: Option<bool>,
pub allowed_tools: Option<Vec<String>>,
pub blocked_tools: Option<Vec<String>>,
pub max_cost_per_session: Option<f64>,
}Fields§
§failure_mode: Option<FailureMode>§approval_required: Option<bool>§allowed_tools: Option<Vec<String>>§blocked_tools: Option<Vec<String>>§max_cost_per_session: Option<f64>Trait Implementations§
Source§impl Clone for RiskProfileDef
impl Clone for RiskProfileDef
Source§fn clone(&self) -> RiskProfileDef
fn clone(&self) -> RiskProfileDef
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 RiskProfileDef
impl Debug for RiskProfileDef
Source§impl Default for RiskProfileDef
impl Default for RiskProfileDef
Source§fn default() -> RiskProfileDef
fn default() -> RiskProfileDef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RiskProfileDefwhere
RiskProfileDef: Default,
impl<'de> Deserialize<'de> for RiskProfileDefwhere
RiskProfileDef: Default,
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 RiskProfileDef
impl PartialEq for RiskProfileDef
Source§fn eq(&self, other: &RiskProfileDef) -> bool
fn eq(&self, other: &RiskProfileDef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RiskProfileDef
impl Serialize for RiskProfileDef
impl StructuralPartialEq for RiskProfileDef
Auto Trait Implementations§
impl Freeze for RiskProfileDef
impl RefUnwindSafe for RiskProfileDef
impl Send for RiskProfileDef
impl Sync for RiskProfileDef
impl Unpin for RiskProfileDef
impl UnsafeUnpin for RiskProfileDef
impl UnwindSafe for RiskProfileDef
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