pub struct UsagePattern {
pub signature: PatternSignature,
pub occurrence_count: u32,
pub quality: PatternQuality,
pub confidence: f32,
pub typical_complexity: ComplexityBucket,
pub example_paths: Vec<String>,
}Expand description
A detected usage pattern with metadata.
Fields§
§signature: PatternSignaturePattern signature for identification.
occurrence_count: u32How many times this pattern was observed.
quality: PatternQualityQuality assessment.
confidence: f32Confidence (0.0 to 1.0).
typical_complexity: ComplexityBucketTypical complexity bucket for code using this pattern.
example_paths: Vec<String>Example file paths where this pattern was found.
Trait Implementations§
Source§impl Clone for UsagePattern
impl Clone for UsagePattern
Source§fn clone(&self) -> UsagePattern
fn clone(&self) -> UsagePattern
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 UsagePattern
impl Debug for UsagePattern
Source§impl<'de> Deserialize<'de> for UsagePattern
impl<'de> Deserialize<'de> for UsagePattern
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 UsagePattern
impl RefUnwindSafe for UsagePattern
impl Send for UsagePattern
impl Sync for UsagePattern
impl Unpin for UsagePattern
impl UnsafeUnpin for UsagePattern
impl UnwindSafe for UsagePattern
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