pub struct MessageClassificationMatch {
pub session_id: String,
pub message_seq: i64,
pub provider: Provider,
pub ts: Option<DateTime<Utc>>,
pub policy_name: String,
pub category: String,
pub matched_text: String,
pub match_start_char: usize,
pub match_end_char_exclusive: usize,
pub content: String,
}Expand description
A message classified by one of the selected capability’s rules.
Fields§
§session_id: String§message_seq: i64Session-local message sequence used with session_id for exact focused recovery.
provider: Provider§ts: Option<DateTime<Utc>>§policy_name: StringWhich compiled classification policy produced this match. Only the name: version and
digest are reported once per run in MessageClassificationReport::policies rather than
repeated on every row.
category: String§matched_text: StringThe exact substring that matched, not the rule that matched it: this is
Regex::find(..).as_str() from the classifier (db.rs), so for the rule
\byou forgot\b the value is you forgot.
match_start_char: usizeExact Unicode-scalar coordinates of matched_text in content.
match_end_char_exclusive: usize§content: StringTrait Implementations§
Source§impl Clone for MessageClassificationMatch
impl Clone for MessageClassificationMatch
Source§impl Debug for MessageClassificationMatch
impl Debug for MessageClassificationMatch
Source§impl<'de> Deserialize<'de> for MessageClassificationMatch
impl<'de> Deserialize<'de> for MessageClassificationMatch
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
Source§impl Row for MessageClassificationMatch
impl Row for MessageClassificationMatch
Auto Trait Implementations§
impl Freeze for MessageClassificationMatch
impl RefUnwindSafe for MessageClassificationMatch
impl Send for MessageClassificationMatch
impl Sync for MessageClassificationMatch
impl Unpin for MessageClassificationMatch
impl UnsafeUnpin for MessageClassificationMatch
impl UnwindSafe for MessageClassificationMatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more