pub struct CodePattern {
pub pattern_type: PatternType,
pub description: String,
pub examples: Vec<String>,
pub frequency: usize,
pub confidence: f64,
}
Expand description
Code patterns and conventions
Fields§
§pattern_type: PatternType
§description: String
§examples: Vec<String>
§frequency: usize
§confidence: f64
Trait Implementations§
Source§impl Clone for CodePattern
impl Clone for CodePattern
Source§fn clone(&self) -> CodePattern
fn clone(&self) -> CodePattern
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 CodePattern
impl Debug for CodePattern
Source§impl<'de> Deserialize<'de> for CodePattern
impl<'de> Deserialize<'de> for CodePattern
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 CodePattern
impl RefUnwindSafe for CodePattern
impl Send for CodePattern
impl Sync for CodePattern
impl Unpin for CodePattern
impl UnwindSafe for CodePattern
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