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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more