pub struct ViolationRef {
pub guard: String,
pub severity: String,
pub message: String,
pub action: Option<String>,
}Expand description
Violation reference from a guard
Fields§
§guard: StringGuard that detected the violation
severity: StringSeverity level
message: StringHuman-readable message
action: Option<String>Action taken (e.g., “blocked”, “logged”)
Trait Implementations§
Source§impl Clone for ViolationRef
impl Clone for ViolationRef
Source§fn clone(&self) -> ViolationRef
fn clone(&self) -> ViolationRef
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 ViolationRef
impl Debug for ViolationRef
Source§impl<'de> Deserialize<'de> for ViolationRef
impl<'de> Deserialize<'de> for ViolationRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ViolationRef
impl RefUnwindSafe for ViolationRef
impl Send for ViolationRef
impl Sync for ViolationRef
impl Unpin for ViolationRef
impl UnsafeUnpin for ViolationRef
impl UnwindSafe for ViolationRef
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