pub enum SchemaError {
EmptyIdentifier(&'static str),
IdentifierTooLong {
kind: &'static str,
len: usize,
max: usize,
},
InvalidIdentifier {
kind: &'static str,
name: String,
},
NoColumns,
TooManyColumns {
count: usize,
max: usize,
},
ReservedColumn(String),
DuplicateColumn(String),
InvalidDateTime64Precision {
precision: u8,
},
}Expand description
Raised when untrusted schema input violates a safety rule.
Variants§
EmptyIdentifier(&'static str)
IdentifierTooLong
InvalidIdentifier
NoColumns
TooManyColumns
ReservedColumn(String)
DuplicateColumn(String)
InvalidDateTime64Precision
Trait Implementations§
Source§impl Debug for SchemaError
impl Debug for SchemaError
Source§impl Display for SchemaError
impl Display for SchemaError
impl Eq for SchemaError
Source§impl Error for SchemaError
impl Error for SchemaError
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 SchemaError
impl PartialEq for SchemaError
Source§fn eq(&self, other: &SchemaError) -> bool
fn eq(&self, other: &SchemaError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnsafeUnpin for SchemaError
impl UnwindSafe for SchemaError
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