pub enum SchemaLiteralValidationReason {
ExpectedList,
ExpectedText,
ExpectedScalar,
LiteralTypeMismatch,
ListElementTypeMismatch,
EnumPathMismatch,
}Expand description
Compact literal validation reason for schema validation diagnostics.
Variants§
ExpectedList
ExpectedText
ExpectedScalar
LiteralTypeMismatch
ListElementTypeMismatch
EnumPathMismatch
Trait Implementations§
Source§impl Clone for SchemaLiteralValidationReason
impl Clone for SchemaLiteralValidationReason
Source§fn clone(&self) -> SchemaLiteralValidationReason
fn clone(&self) -> SchemaLiteralValidationReason
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 SchemaLiteralValidationReason
impl Eq for SchemaLiteralValidationReason
Source§impl PartialEq for SchemaLiteralValidationReason
impl PartialEq for SchemaLiteralValidationReason
Source§fn eq(&self, other: &SchemaLiteralValidationReason) -> bool
fn eq(&self, other: &SchemaLiteralValidationReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaLiteralValidationReason
Auto Trait Implementations§
impl Freeze for SchemaLiteralValidationReason
impl RefUnwindSafe for SchemaLiteralValidationReason
impl Send for SchemaLiteralValidationReason
impl Sync for SchemaLiteralValidationReason
impl Unpin for SchemaLiteralValidationReason
impl UnsafeUnpin for SchemaLiteralValidationReason
impl UnwindSafe for SchemaLiteralValidationReason
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