pub enum AnalyticsDiagnosticKind {
MissingHistory,
UnclassifiedEvent,
MissingConversion,
InvalidPeriod,
ClosedSnapshot,
ProjectionUnknown,
}Expand description
What one analytics finding is about (data-model.md §7).
The set is closed at the contract’s six names. Three of them are produced by the
count-mode fold (MissingHistory,
UnclassifiedEvent,
InvalidPeriod and
ClosedSnapshot); the other two are declared here so
WP03 fills its half of one vocabulary rather than starting a second
(MissingConversion,
ProjectionUnknown).
Variants§
MissingHistory
The period holds a day (or an event) with no recorded history, so a value beside it is coverage-limited rather than a zero (C-005).
UnclassifiedEvent
A recorded event carries a class the fold cannot place, so it moves no line and is reported instead of dropped.
MissingConversion
A value needs an explicit unit conversion the shared service does not supply. WP03 owns the resolution path; the name is fixed here (C-003).
InvalidPeriod
A period could not be enumerated: a bound is absent with nothing observed to stand in for it, or the span is too long to be a series.
ClosedSnapshot
The scope is bound to a closed snapshot: its period and provenance are the snapshot’s, and events after its close are not contributions (C-006).
ProjectionUnknown
A projection could not be drawn from the recorded history. WP03 owns the forecast; the name is fixed here (C-004).
Implementations§
Source§impl AnalyticsDiagnosticKind
impl AnalyticsDiagnosticKind
Sourcepub const ALL: [AnalyticsDiagnosticKind; 6]
pub const ALL: [AnalyticsDiagnosticKind; 6]
Every kind, in the vocabulary’s own order.
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The stable spelling every surface prints and every payload carries.
These are the contract’s own names (data-model.md §7), so a payload
parser in another language matches on them without a translation table.
Sourcepub fn parse(raw: &str) -> Option<Self>
pub fn parse(raw: &str) -> Option<Self>
Parse a canonical spelling; None for anything outside the vocabulary.
Sourcepub const fn default_remedy(self) -> Option<&'static str>
pub const fn default_remedy(self) -> Option<&'static str>
What the reader can do about it — the remedy half of the #1643 shape.
A kind this build has no remedy for returns None, and the diagnostic then
carries only its reason. The table is on the kind so every construction
site offers the same advice.
Trait Implementations§
Source§impl Clone for AnalyticsDiagnosticKind
impl Clone for AnalyticsDiagnosticKind
impl Copy for AnalyticsDiagnosticKind
Source§impl Debug for AnalyticsDiagnosticKind
impl Debug for AnalyticsDiagnosticKind
Source§impl<'de> Deserialize<'de> for AnalyticsDiagnosticKind
impl<'de> Deserialize<'de> for AnalyticsDiagnosticKind
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>,
Source§impl Display for AnalyticsDiagnosticKind
impl Display for AnalyticsDiagnosticKind
impl Eq for AnalyticsDiagnosticKind
Source§impl Hash for AnalyticsDiagnosticKind
impl Hash for AnalyticsDiagnosticKind
Source§impl Ord for AnalyticsDiagnosticKind
impl Ord for AnalyticsDiagnosticKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AnalyticsDiagnosticKind
impl PartialEq for AnalyticsDiagnosticKind
Source§impl PartialOrd for AnalyticsDiagnosticKind
impl PartialOrd for AnalyticsDiagnosticKind
Source§impl Serialize for AnalyticsDiagnosticKind
impl Serialize for AnalyticsDiagnosticKind
impl StructuralPartialEq for AnalyticsDiagnosticKind
Auto Trait Implementations§
impl Freeze for AnalyticsDiagnosticKind
impl RefUnwindSafe for AnalyticsDiagnosticKind
impl Send for AnalyticsDiagnosticKind
impl Sync for AnalyticsDiagnosticKind
impl Unpin for AnalyticsDiagnosticKind
impl UnsafeUnpin for AnalyticsDiagnosticKind
impl UnwindSafe for AnalyticsDiagnosticKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more