pub struct SafetyPolicyEnforcement {
pub enforcement_level: EnforcementLevel,
pub auto_block_violations: bool,
pub require_human_review: Vec<HarmType>,
pub escalation_rules: Vec<EscalationRule>,
pub compliance_reporting: ComplianceReporting,
}Expand description
Safety policy enforcement configuration
Fields§
§enforcement_level: EnforcementLevelLevel of enforcement
auto_block_violations: boolWhether to automatically block violations
require_human_review: Vec<HarmType>Harm types that require human review
escalation_rules: Vec<EscalationRule>Rules for escalating safety issues
compliance_reporting: ComplianceReportingCompliance reporting configuration
Trait Implementations§
Source§impl Clone for SafetyPolicyEnforcement
impl Clone for SafetyPolicyEnforcement
Source§fn clone(&self) -> SafetyPolicyEnforcement
fn clone(&self) -> SafetyPolicyEnforcement
Returns a duplicate of the value. Read more
1.0.0 · 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 SafetyPolicyEnforcement
impl Debug for SafetyPolicyEnforcement
Source§impl<'de> Deserialize<'de> for SafetyPolicyEnforcement
impl<'de> Deserialize<'de> for SafetyPolicyEnforcement
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 SafetyPolicyEnforcement
impl RefUnwindSafe for SafetyPolicyEnforcement
impl Send for SafetyPolicyEnforcement
impl Sync for SafetyPolicyEnforcement
impl Unpin for SafetyPolicyEnforcement
impl UnwindSafe for SafetyPolicyEnforcement
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