pub struct DetectedPattern {
pub name: String,
pub category: PatternCategory,
pub confidence: f32,
pub locations: Vec<PathBuf>,
pub description: String,
}Expand description
Detected pattern in the codebase
Fields§
§name: StringPattern name
category: PatternCategoryPattern category
confidence: f32Confidence score (0.0 to 1.0)
locations: Vec<PathBuf>Locations where pattern was detected
description: StringPattern description
Trait Implementations§
Source§impl Clone for DetectedPattern
impl Clone for DetectedPattern
Source§fn clone(&self) -> DetectedPattern
fn clone(&self) -> DetectedPattern
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 DetectedPattern
impl Debug for DetectedPattern
Source§impl<'de> Deserialize<'de> for DetectedPattern
impl<'de> Deserialize<'de> for DetectedPattern
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 DetectedPattern
impl RefUnwindSafe for DetectedPattern
impl Send for DetectedPattern
impl Sync for DetectedPattern
impl Unpin for DetectedPattern
impl UnwindSafe for DetectedPattern
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