pub enum ValidateError {
Show 14 variants
InvalidEntityName {
name: String,
source: EntityNameError,
},
InvalidIndexName {
index: IndexModel,
source: IndexNameError,
},
UnknownField {
field: String,
},
UnsupportedFieldType {
field: String,
},
DuplicateField {
field: String,
},
InvalidPrimaryKey {
field: String,
},
InvalidPrimaryKeyType {
field: String,
},
IndexFieldUnknown {
index: IndexModel,
field: String,
},
IndexFieldUnsupported {
index: IndexModel,
field: String,
},
IndexFieldDuplicate {
index: IndexModel,
field: String,
},
DuplicateIndexName {
name: String,
},
InvalidOperator {
field: String,
op: String,
},
InvalidCoercion {
field: String,
coercion: CoercionId,
},
InvalidLiteral {
field: String,
message: String,
},
}Expand description
Predicate/schema validation failures, including invalid model contracts.
Variants§
InvalidEntityName
InvalidIndexName
UnknownField
UnsupportedFieldType
DuplicateField
InvalidPrimaryKey
InvalidPrimaryKeyType
IndexFieldUnknown
IndexFieldUnsupported
IndexFieldDuplicate
DuplicateIndexName
InvalidOperator
InvalidCoercion
InvalidLiteral
Trait Implementations§
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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<ValidateError> for PlanError
impl From<ValidateError> for PlanError
Source§fn from(source: ValidateError) -> Self
fn from(source: ValidateError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateError> for QueryError
impl From<ValidateError> for QueryError
Source§fn from(source: ValidateError) -> Self
fn from(source: ValidateError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateError> for SortLowerError
impl From<ValidateError> for SortLowerError
Source§fn from(source: ValidateError) -> Self
fn from(source: ValidateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnwindSafe for ValidateError
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