pub struct LLMGuardReference {
pub f1: f64,
pub precision: f64,
pub recall: f64,
pub latency_ms: f64,
}Expand description
Reference metrics for LLM Guard Based on published benchmarks from ProtectAI
Fields§
§f1: f64§precision: f64§recall: f64§latency_ms: f64Implementations§
Source§impl LLMGuardReference
impl LLMGuardReference
pub fn to_guard_metrics(&self) -> GuardMetrics
Trait Implementations§
Source§impl Clone for LLMGuardReference
impl Clone for LLMGuardReference
Source§fn clone(&self) -> LLMGuardReference
fn clone(&self) -> LLMGuardReference
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 LLMGuardReference
impl Debug for LLMGuardReference
Auto Trait Implementations§
impl Freeze for LLMGuardReference
impl RefUnwindSafe for LLMGuardReference
impl Send for LLMGuardReference
impl Sync for LLMGuardReference
impl Unpin for LLMGuardReference
impl UnwindSafe for LLMGuardReference
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