pub enum Mismatch {
Primitive {
expected: &'static str,
actual: &'static str,
},
EnumMember {
member: String,
declared: Vec<String>,
},
SelectMember {
written: String,
select: String,
},
FixedWidth {
expected: usize,
actual: usize,
},
}Expand description
Why a value does not fit its declared type.
Variants§
Primitive
The written form is not what the primitive accepts.
Fields
EnumMember
An enumeration constant the schema does not declare.
Fields
SelectMember
A typed value whose type is not a member of the declared SELECT.
FixedWidth
A STRING(n) FIXED value written at the wrong width.
Trait Implementations§
impl Eq for Mismatch
impl StructuralPartialEq for Mismatch
Auto Trait Implementations§
impl Freeze for Mismatch
impl RefUnwindSafe for Mismatch
impl Send for Mismatch
impl Sync for Mismatch
impl Unpin for Mismatch
impl UnsafeUnpin for Mismatch
impl UnwindSafe for Mismatch
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