pub struct FieldDoc {
pub path: &'static str,
pub rule: String,
pub values: Vec<String>,
}Expand description
One entry of the field inventory fields publishes: where the field
sits and what it may hold, generated from the grammar itself so the
notice cannot drift from the parser.
Fields§
§path: &'static strThe JSON pointer of the field, as the rejection messages name it.
rule: StringThe rule in words, for the fields that are not plain closed lists.
values: Vec<String>The permitted values, for the closed lists; generated from the
enums’ ALL slices so it cannot disagree with them.
Trait Implementations§
impl Eq for FieldDoc
impl StructuralPartialEq for FieldDoc
Auto Trait Implementations§
impl Freeze for FieldDoc
impl RefUnwindSafe for FieldDoc
impl Send for FieldDoc
impl Sync for FieldDoc
impl Unpin for FieldDoc
impl UnsafeUnpin for FieldDoc
impl UnwindSafe for FieldDoc
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<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
Compare self to
key and return true if they are equal.