pub struct StoredLesson {
pub id: String,
pub text: String,
pub severity: String,
pub tags: Vec<String>,
pub source_session: String,
pub source_trigger: String,
pub created_at: String,
pub occurrences: u64,
}Expand description
A lesson with persistence metadata.
Fields§
§id: String§text: String§severity: String§source_session: String§source_trigger: String§created_at: String§occurrences: u64Number of times this lesson pattern was seen.
Trait Implementations§
Source§impl Clone for StoredLesson
impl Clone for StoredLesson
Source§fn clone(&self) -> StoredLesson
fn clone(&self) -> StoredLesson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredLesson
impl Debug for StoredLesson
Source§impl<'de> Deserialize<'de> for StoredLesson
impl<'de> Deserialize<'de> for StoredLesson
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 StoredLesson
impl RefUnwindSafe for StoredLesson
impl Send for StoredLesson
impl Sync for StoredLesson
impl Unpin for StoredLesson
impl UnsafeUnpin for StoredLesson
impl UnwindSafe for StoredLesson
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