pub struct LearnedPattern {
pub id: String,
pub pattern_type: String,
pub description: String,
pub examples: Vec<PatternExample>,
pub confidence: f32,
pub occurrences: usize,
pub created_at: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
}Expand description
A learned pattern extracted from repeated decisions
Fields§
§id: StringUnique identifier for the pattern
pattern_type: StringType of pattern (e.g., “code_generation”, “refactoring”)
description: StringHuman-readable description
examples: Vec<PatternExample>Examples of this pattern
confidence: f32Confidence score (0.0 to 1.0)
occurrences: usizeNumber of times this pattern has been observed
created_at: DateTime<Utc>When the pattern was first identified
last_seen: DateTime<Utc>When the pattern was last observed
Implementations§
Trait Implementations§
Source§impl Clone for LearnedPattern
impl Clone for LearnedPattern
Source§fn clone(&self) -> LearnedPattern
fn clone(&self) -> LearnedPattern
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 LearnedPattern
impl Debug for LearnedPattern
Source§impl<'de> Deserialize<'de> for LearnedPattern
impl<'de> Deserialize<'de> for LearnedPattern
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 LearnedPattern
impl RefUnwindSafe for LearnedPattern
impl Send for LearnedPattern
impl Sync for LearnedPattern
impl Unpin for LearnedPattern
impl UnwindSafe for LearnedPattern
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