pub struct Gotcha {Show 17 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: UtcDateTime,
pub last_seen: UtcDateTime,
pub confidence: f32,
pub source: GotchaSource,
pub prevented_count: u32,
pub tags: Vec<String>,
pub provenance: Vec<ProvenanceRef>,
pub expires_at: Option<UtcDateTime>,
pub decay_rate_override: Option<f32>,
}Fields§
§id: String§category: GotchaCategory§severity: GotchaSeverity§trigger: String§resolution: String§file_patterns: Vec<String>§occurrences: u32§session_ids: Vec<String>§first_seen: UtcDateTime§last_seen: UtcDateTime§confidence: f32§source: GotchaSource§prevented_count: u32§provenance: Vec<ProvenanceRef>§expires_at: Option<UtcDateTime>§decay_rate_override: Option<f32>Implementations§
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 Forget for Gotcha
impl Freeze for Gotchawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ProvenanceRef>: Freeze,
impl Move for Gotcha
impl RefUnwindSafe for Gotcha
impl Send for Gotchawhere
RawVecInner: Send,
impl Sync for Gotchawhere
RawVecInner: Sync,
impl Unpin for Gotcha
impl UnsafeUnpin for Gotchawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ProvenanceRef>: UnsafeUnpin,
impl UnwindSafe for Gotchawhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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