pub enum ValidationKind {
NonFinite,
OutOfRange,
LengthMismatch,
LimitExceeded,
NestedMetadata,
DuplicateIdentifier,
}Expand description
Stable classification of a protocol validation failure.
These identifiers are part of the crate’s error contract: serde wrappers
and fmt::Display use ValidationKind::as_str, so assertions should
match the kind rather than a full prose sentence.
Variants§
NonFinite
An f32 was NaN or ±infinity.
OutOfRange
A numeric value was outside its documented inclusive range.
LengthMismatch
Two related sequences (for example values and valid_mask) differed in length.
LimitExceeded
A collection length or string byte length exceeded ProtocolLimits.
NestedMetadata
Nested metadata violated policy (empty key, or a nested object rejected by the typed map).
DuplicateIdentifier
A repeated identifier in a list that must be unique (channel_id, layer_id).
Implementations§
Trait Implementations§
Source§impl Clone for ValidationKind
impl Clone for ValidationKind
impl Copy for ValidationKind
Source§impl Debug for ValidationKind
impl Debug for ValidationKind
Source§impl Display for ValidationKind
impl Display for ValidationKind
impl Eq for ValidationKind
Source§impl Hash for ValidationKind
impl Hash for ValidationKind
Source§impl PartialEq for ValidationKind
impl PartialEq for ValidationKind
impl StructuralPartialEq for ValidationKind
Auto Trait Implementations§
impl Freeze for ValidationKind
impl RefUnwindSafe for ValidationKind
impl Send for ValidationKind
impl Sync for ValidationKind
impl Unpin for ValidationKind
impl UnsafeUnpin for ValidationKind
impl UnwindSafe for ValidationKind
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