pub struct GuardCheckResult {
pub guard_name: String,
pub passed: bool,
pub action: GuardAction,
pub matches: Vec<Match>,
pub sanitized: Option<String>,
pub reason: String,
}Expand description
Result of guard evaluation
Fields§
§guard_name: StringThe guard that produced this result
passed: boolWhether the content passed the guard
action: GuardActionAction to take
matches: Vec<Match>Matches found
sanitized: Option<String>Sanitized content (if action is Sanitize)
reason: StringReason for the result
Implementations§
Source§impl GuardCheckResult
impl GuardCheckResult
Trait Implementations§
Source§impl Clone for GuardCheckResult
impl Clone for GuardCheckResult
Source§fn clone(&self) -> GuardCheckResult
fn clone(&self) -> GuardCheckResult
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 GuardCheckResult
impl RefUnwindSafe for GuardCheckResult
impl Send for GuardCheckResult
impl Sync for GuardCheckResult
impl Unpin for GuardCheckResult
impl UnwindSafe for GuardCheckResult
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