pub enum SchemaFieldError {
MalformedSchemaFieldName,
TooManyFields,
ZeroFields,
DuplicateFields,
}Expand description
Custom errors related to SchemaFields.
Variants§
MalformedSchemaFieldName
Encountered an invalid name in a schema field key.
TooManyFields
Maximum number of schema fields (1024) has been exceeded.
ZeroFields
Schema fields length must be at least 1.
DuplicateFields
Schema fields cannot contain duplicate fields.
Trait Implementations§
Source§impl Clone for SchemaFieldError
impl Clone for SchemaFieldError
Source§fn clone(&self) -> SchemaFieldError
fn clone(&self) -> SchemaFieldError
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaFieldError
impl Debug for SchemaFieldError
Source§impl Display for SchemaFieldError
impl Display for SchemaFieldError
Source§impl Error for SchemaFieldError
impl Error for SchemaFieldError
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 From<SchemaFieldError> for SchemaError
impl From<SchemaFieldError> for SchemaError
Source§fn from(source: SchemaFieldError) -> Self
fn from(source: SchemaFieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaFieldError
impl RefUnwindSafe for SchemaFieldError
impl Send for SchemaFieldError
impl Sync for SchemaFieldError
impl Unpin for SchemaFieldError
impl UnwindSafe for SchemaFieldError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more