pub enum ValidateOperationError {
SchemaNotMatching(String, String),
ExpectedFields,
UnexpectedFields,
ExpectedPreviousOperations,
UnexpectedPreviousOperations,
SchemaValidation(ValidationError),
ValidateEntryError(ValidateEntryError),
}Expand description
Errors from operation::validate module.
Variants§
SchemaNotMatching(String, String)
Claimed schema id did not match given schema.
ExpectedFields
Expected fields in CREATE or UPDATE operation.
UnexpectedFields
Unexpected fields in DELETE operation.
ExpectedPreviousOperations
Expected previous in UPDATE or DELETE operation.
UnexpectedPreviousOperations
Unexpected previous in CREATE operation.
SchemaValidation(ValidationError)
Handle errors from schema::validate module.
ValidateEntryError(ValidateEntryError)
Handle errors from entry::validate module.
Trait Implementations§
Source§impl Debug for ValidateOperationError
impl Debug for ValidateOperationError
Source§impl Display for ValidateOperationError
impl Display for ValidateOperationError
Source§impl Error for ValidateOperationError
impl Error for ValidateOperationError
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<ValidateEntryError> for ValidateOperationError
impl From<ValidateEntryError> for ValidateOperationError
Source§fn from(source: ValidateEntryError) -> Self
fn from(source: ValidateEntryError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateOperationError> for DocumentStorageError
impl From<ValidateOperationError> for DocumentStorageError
Source§fn from(source: ValidateOperationError) -> Self
fn from(source: ValidateOperationError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateOperationError> for DomainError
impl From<ValidateOperationError> for DomainError
Source§fn from(source: ValidateOperationError) -> Self
fn from(source: ValidateOperationError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateOperationError> for OperationBuilderError
impl From<ValidateOperationError> for OperationBuilderError
Source§fn from(source: ValidateOperationError) -> Self
fn from(source: ValidateOperationError) -> Self
Converts to this type from the input type.
Source§impl From<ValidateOperationError> for ValidationError
impl From<ValidateOperationError> for ValidationError
Source§fn from(source: ValidateOperationError) -> Self
fn from(source: ValidateOperationError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for ValidateOperationError
impl From<ValidationError> for ValidateOperationError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateOperationError
impl !RefUnwindSafe for ValidateOperationError
impl Send for ValidateOperationError
impl Sync for ValidateOperationError
impl Unpin for ValidateOperationError
impl !UnwindSafe for ValidateOperationError
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> 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