pub struct MessageScanResult {
pub safe: bool,
pub injection_detected: bool,
pub exfiltration_risk: bool,
pub confidence: f64,
pub indicators: Vec<String>,
}Expand description
Result of scanning an inter-agent message for threats.
Fields§
§safe: boolWhether the message is considered safe.
injection_detected: boolWhether a prompt injection was detected.
exfiltration_risk: boolWhether data exfiltration risk was detected.
confidence: f64Overall confidence score (0.0 to 1.0).
indicators: Vec<String>Human-readable indicators of what was detected.
Trait Implementations§
Source§impl Clone for MessageScanResult
impl Clone for MessageScanResult
Source§fn clone(&self) -> MessageScanResult
fn clone(&self) -> MessageScanResult
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 MessageScanResult
impl RefUnwindSafe for MessageScanResult
impl Send for MessageScanResult
impl Sync for MessageScanResult
impl Unpin for MessageScanResult
impl UnsafeUnpin for MessageScanResult
impl UnwindSafe for MessageScanResult
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