pub struct GuardrailAlert {
pub kind: GuardrailKind,
pub severity: AlertSeverity,
pub recommended_level: DegradationLevel,
}Expand description
A single guardrail alert.
Fields§
§kind: GuardrailKindWhich guardrail triggered.
severity: AlertSeverityHow severe the overage is.
recommended_level: DegradationLevelRecommended minimum degradation level.
Trait Implementations§
Source§impl Clone for GuardrailAlert
impl Clone for GuardrailAlert
Source§fn clone(&self) -> GuardrailAlert
fn clone(&self) -> GuardrailAlert
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 GuardrailAlert
impl Debug for GuardrailAlert
Source§impl PartialEq for GuardrailAlert
impl PartialEq for GuardrailAlert
impl Copy for GuardrailAlert
impl Eq for GuardrailAlert
impl StructuralPartialEq for GuardrailAlert
Auto Trait Implementations§
impl Freeze for GuardrailAlert
impl RefUnwindSafe for GuardrailAlert
impl Send for GuardrailAlert
impl Sync for GuardrailAlert
impl Unpin for GuardrailAlert
impl UnsafeUnpin for GuardrailAlert
impl UnwindSafe for GuardrailAlert
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