pub struct GuardrailVerdict {
pub n: usize,
pub rate: f64,
pub bound: f64,
pub breached: bool,
pub insufficient_samples: bool,
}Expand description
The verdict of one guardrail evaluation.
Fields§
§n: usizeResolved samples considered.
rate: f64Observed failure rate over the window.
bound: f64Hoeffding upper confidence bound on that rate.
breached: boolWhether the bound exceeds the target with enough samples to say so.
insufficient_samples: boolSet when the guardrail declined to judge, and why.
Trait Implementations§
Source§impl Clone for GuardrailVerdict
impl Clone for GuardrailVerdict
Source§fn clone(&self) -> GuardrailVerdict
fn clone(&self) -> GuardrailVerdict
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 moreimpl Copy for GuardrailVerdict
Source§impl Debug for GuardrailVerdict
impl Debug for GuardrailVerdict
Source§impl PartialEq for GuardrailVerdict
impl PartialEq for GuardrailVerdict
impl StructuralPartialEq for GuardrailVerdict
Auto Trait Implementations§
impl Freeze for GuardrailVerdict
impl RefUnwindSafe for GuardrailVerdict
impl Send for GuardrailVerdict
impl Sync for GuardrailVerdict
impl Unpin for GuardrailVerdict
impl UnsafeUnpin for GuardrailVerdict
impl UnwindSafe for GuardrailVerdict
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