pub struct Gotcha {Show 14 fields
pub id: String,
pub category: GotchaCategory,
pub severity: GotchaSeverity,
pub trigger: String,
pub resolution: String,
pub file_patterns: Vec<String>,
pub occurrences: u32,
pub session_ids: Vec<String>,
pub first_seen: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
pub confidence: f32,
pub source: GotchaSource,
pub prevented_count: u32,
pub tags: Vec<String>,
}Fields§
§id: String§category: GotchaCategory§severity: GotchaSeverity§trigger: String§resolution: String§file_patterns: Vec<String>§occurrences: u32§session_ids: Vec<String>§first_seen: DateTime<Utc>§last_seen: DateTime<Utc>§confidence: f32§source: GotchaSource§prevented_count: u32Implementations§
Source§impl Gotcha
impl Gotcha
pub fn new( category: GotchaCategory, severity: GotchaSeverity, trigger: &str, resolution: &str, source: GotchaSource, session_id: &str, ) -> Self
pub fn merge_with(&mut self, other: &Gotcha)
pub fn is_promotable(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gotcha
impl<'de> Deserialize<'de> for Gotcha
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 Gotcha
impl RefUnwindSafe for Gotcha
impl Send for Gotcha
impl Sync for Gotcha
impl Unpin for Gotcha
impl UnsafeUnpin for Gotcha
impl UnwindSafe for Gotcha
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