pub struct ExtractedPattern {
pub name: String,
pub description: String,
pub instances: Vec<PatternInstance>,
pub structure: PatternStructure,
pub confidence: f64,
pub violations: Vec<PatternViolation>,
}Expand description
An extracted pattern.
Fields§
§name: StringPattern name.
description: StringDescription.
instances: Vec<PatternInstance>Where it’s used.
structure: PatternStructureThe pattern structure.
confidence: f64Confidence it’s intentional.
violations: Vec<PatternViolation>Violations (code that should follow but doesn’t).
Trait Implementations§
Source§impl Clone for ExtractedPattern
impl Clone for ExtractedPattern
Source§fn clone(&self) -> ExtractedPattern
fn clone(&self) -> ExtractedPattern
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 ExtractedPattern
impl Debug for ExtractedPattern
Source§impl<'de> Deserialize<'de> for ExtractedPattern
impl<'de> Deserialize<'de> for ExtractedPattern
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 ExtractedPattern
impl RefUnwindSafe for ExtractedPattern
impl Send for ExtractedPattern
impl Sync for ExtractedPattern
impl Unpin for ExtractedPattern
impl UnsafeUnpin for ExtractedPattern
impl UnwindSafe for ExtractedPattern
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