pub enum FieldViolation {
InvalidName,
TooDeep,
}Expand description
A field-level invariant violation, shared by every payload ingestion path.
Each boundary maps it to its own error type (ParseError,
StorageError, WireError, EditError), so the invariant — every user
field name matches [a-z_][a-z0-9_]* and no value nests past the §8
depth limit — is enforced once, here, and a constructed Document can
never violate it.
Variants§
InvalidName
The field name does not match [a-z_][a-z0-9_]* (spec §3.4 / §10).
TooDeep
The value nests deeper than MAX_YAML_DEPTH
(spec §8).
Trait Implementations§
Source§impl Clone for FieldViolation
impl Clone for FieldViolation
Source§fn clone(&self) -> FieldViolation
fn clone(&self) -> FieldViolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FieldViolation
Source§impl Debug for FieldViolation
impl Debug for FieldViolation
impl Eq for FieldViolation
Source§impl PartialEq for FieldViolation
impl PartialEq for FieldViolation
Source§fn eq(&self, other: &FieldViolation) -> bool
fn eq(&self, other: &FieldViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldViolation
Auto Trait Implementations§
impl Freeze for FieldViolation
impl RefUnwindSafe for FieldViolation
impl Send for FieldViolation
impl Sync for FieldViolation
impl Unpin for FieldViolation
impl UnsafeUnpin for FieldViolation
impl UnwindSafe for FieldViolation
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.