pub enum FieldError {
NotUtf8 {
tag: u32,
},
NotInt {
tag: u32,
value: String,
},
NotDecimal {
tag: u32,
value: String,
},
NotChar {
tag: u32,
value: String,
},
NotBool {
tag: u32,
value: String,
},
NotTimestamp {
tag: u32,
value: String,
},
NotDateOnly {
tag: u32,
value: String,
},
NotTimeOnly {
tag: u32,
value: String,
},
}Expand description
Error converting a field’s raw value to a typed Rust value.
Variants§
NotUtf8
The raw value is not valid UTF-8.
NotInt
The value is not a valid integer.
NotDecimal
The value is not a valid decimal.
NotChar
The value is not a single character.
NotBool
The value is not a boolean (Y/N).
NotTimestamp
The value is not a valid UTC timestamp.
NotDateOnly
The value is not a valid UTC date-only (YYYYMMDD).
NotTimeOnly
The value is not a valid UTC time-only (HH:MM:SS[.sss...]).
Trait Implementations§
Source§impl Clone for FieldError
impl Clone for FieldError
Source§fn clone(&self) -> FieldError
fn clone(&self) -> FieldError
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 moreSource§impl Debug for FieldError
impl Debug for FieldError
Source§impl Display for FieldError
impl Display for FieldError
impl Eq for FieldError
Source§impl Error for FieldError
impl Error for FieldError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FieldError
impl PartialEq for FieldError
impl StructuralPartialEq for FieldError
Auto Trait Implementations§
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnsafeUnpin for FieldError
impl UnwindSafe for FieldError
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