pub struct SafetyAnalysis {
pub is_safe: bool,
pub safety_score: f32,
pub active_circuits: Vec<String>,
pub risk_factors: Vec<RiskFactor>,
pub proof: AnalysisProof,
}Expand description
Result of safety analysis
Fields§
§is_safe: boolIs the output safe?
safety_score: f32Safety score (0-1)
active_circuits: Vec<String>Activated safety circuits
risk_factors: Vec<RiskFactor>Risk factors detected
proof: AnalysisProofCryptographic proof of analysis
Trait Implementations§
Source§impl Clone for SafetyAnalysis
impl Clone for SafetyAnalysis
Source§fn clone(&self) -> SafetyAnalysis
fn clone(&self) -> SafetyAnalysis
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 moreAuto Trait Implementations§
impl Freeze for SafetyAnalysis
impl RefUnwindSafe for SafetyAnalysis
impl Send for SafetyAnalysis
impl Sync for SafetyAnalysis
impl Unpin for SafetyAnalysis
impl UnwindSafe for SafetyAnalysis
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