pub enum ViewIssueKind {
NotAMapping,
NoGrouping,
UnknownKey,
BadGrain,
NoCondition,
}Expand description
The kinds of thing a views.<name> entry gets wrong.
Variants§
NotAMapping
The entry is not a mapping — daily: date rather than daily: {…}.
NoGrouping
No group:, or one that is empty or not a string/list of strings. The
one key a view cannot do without.
UnknownKey
A key this format does not define. Reported so a labl: is caught;
a near-miss suggestion is the caller’s to add.
BadGrain
A by: or nest: whose value is not a grain.
Carries no rendering of the offending value: the key names it, and how a
value is summarized for a human is the caller’s vocabulary, not this
crate’s — the same division that leaves near-miss suggestions to
prov-config.
NoCondition
A where: that yields no condition — not a mapping, empty, or naming
only predicates this format does not define.
Reported rather than treated as “no filter”, because the two readings of
a broken where: are select everything and select nothing, and
picking either silently is how a typo publishes a workspace or hides
one.
Implementations§
Source§impl ViewIssueKind
impl ViewIssueKind
Trait Implementations§
Source§impl Clone for ViewIssueKind
impl Clone for ViewIssueKind
Source§fn clone(&self) -> ViewIssueKind
fn clone(&self) -> ViewIssueKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ViewIssueKind
impl Debug for ViewIssueKind
impl Eq for ViewIssueKind
Source§impl PartialEq for ViewIssueKind
impl PartialEq for ViewIssueKind
impl StructuralPartialEq for ViewIssueKind
Auto Trait Implementations§
impl Freeze for ViewIssueKind
impl RefUnwindSafe for ViewIssueKind
impl Send for ViewIssueKind
impl Sync for ViewIssueKind
impl Unpin for ViewIssueKind
impl UnsafeUnpin for ViewIssueKind
impl UnwindSafe for ViewIssueKind
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.