pub struct PatternResult {
pub matches: Vec<PatternMatch>,
pub score: f64,
}Expand description
The aggregate result of running the ruleset over one input.
Fields§
§matches: Vec<PatternMatch>Every rule hit, in match order.
score: f64Risk score in 0.0..=1.0: the max per-rule weight among hits (0 if none).
Trait Implementations§
Source§impl Clone for PatternResult
impl Clone for PatternResult
Source§fn clone(&self) -> PatternResult
fn clone(&self) -> PatternResult
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 moreSource§impl Debug for PatternResult
impl Debug for PatternResult
Source§impl Default for PatternResult
impl Default for PatternResult
Source§fn default() -> PatternResult
fn default() -> PatternResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatternResult
impl<'de> Deserialize<'de> for PatternResult
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 PartialEq for PatternResult
impl PartialEq for PatternResult
Source§fn eq(&self, other: &PatternResult) -> bool
fn eq(&self, other: &PatternResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatternResult
impl Serialize for PatternResult
impl StructuralPartialEq for PatternResult
Auto Trait Implementations§
impl Freeze for PatternResult
impl RefUnwindSafe for PatternResult
impl Send for PatternResult
impl Sync for PatternResult
impl Unpin for PatternResult
impl UnsafeUnpin for PatternResult
impl UnwindSafe for PatternResult
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