pub enum HitError {
Show 32 variants
NoModelForId(String),
PropertyNotFound(String),
ModelDoesNotExist(String),
InvalidMoveDestination(),
InvalidDataType(),
InvalidDateFormat(),
InvalidReference(String),
InvalidReferenceInArray(),
InvalidReferenceType(),
InvalidReferenceTypeInArray(),
Required(),
ModelNotAllowed(String),
IDNotFound(String, String),
ListenerNotFound(String),
ValidationError(),
NoParent(),
InvalidParentID(String),
DuplicateID(String),
CannotBeOwnParent(String),
CannotMoveRootObject(),
CannotBeOwnChild(),
CanOnlySetScalarValues(),
CanOnlySetScalarValuesInInsertedObject(),
CannotInsertObjectInThisDataType(),
CannotInsertReferenceInThisDataType(),
CannotInsertReferenceTwice(),
ReferenceNotFound(),
CannotRemoveReferenceFromThisDataType(),
CannotRemoveObjectFromThisDataType(),
CannotDeleteObjectWithReferences(HashMap<String, Vec<IndexEntryProperty>>),
CannotDeleteRootObject(),
InvalidBeforeId(String),
}
Variants§
NoModelForId(String)
PropertyNotFound(String)
ModelDoesNotExist(String)
InvalidMoveDestination()
InvalidDataType()
InvalidDateFormat()
InvalidReference(String)
InvalidReferenceInArray()
InvalidReferenceType()
InvalidReferenceTypeInArray()
Required()
ModelNotAllowed(String)
IDNotFound(String, String)
ListenerNotFound(String)
ValidationError()
NoParent()
InvalidParentID(String)
DuplicateID(String)
CannotBeOwnParent(String)
CannotMoveRootObject()
CannotBeOwnChild()
CanOnlySetScalarValues()
CanOnlySetScalarValuesInInsertedObject()
CannotInsertObjectInThisDataType()
CannotInsertReferenceInThisDataType()
CannotInsertReferenceTwice()
ReferenceNotFound()
CannotRemoveReferenceFromThisDataType()
CannotRemoveObjectFromThisDataType()
CannotDeleteObjectWithReferences(HashMap<String, Vec<IndexEntryProperty>>)
CannotDeleteRootObject()
InvalidBeforeId(String)
Trait Implementations§
source§impl Error for HitError
impl Error for HitError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 HitError
impl PartialEq for HitError
impl StructuralPartialEq for HitError
Auto Trait Implementations§
impl RefUnwindSafe for HitError
impl Send for HitError
impl Sync for HitError
impl Unpin for HitError
impl UnwindSafe for HitError
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