#[non_exhaustive]pub enum BatchErrorCode {
NotFound,
ValidationError,
DuplicateKey,
VersionConflict,
DatabaseError,
InternalError,
}Expand description
Categorized batch error codes for programmatic handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound
Entity was not found.
ValidationError
Input validation failed.
DuplicateKey
Duplicate key constraint violation.
VersionConflict
Optimistic locking version conflict.
DatabaseError
Database-level error.
InternalError
Unclassified internal error.
Trait Implementations§
Source§impl Clone for BatchErrorCode
impl Clone for BatchErrorCode
Source§fn clone(&self) -> BatchErrorCode
fn clone(&self) -> BatchErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BatchErrorCode
Source§impl Debug for BatchErrorCode
impl Debug for BatchErrorCode
Source§impl<'de> Deserialize<'de> for BatchErrorCode
impl<'de> Deserialize<'de> for BatchErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BatchErrorCode
impl Display for BatchErrorCode
impl Eq for BatchErrorCode
Source§impl From<&CommerceError> for BatchErrorCode
impl From<&CommerceError> for BatchErrorCode
Source§fn from(err: &CommerceError) -> Self
fn from(err: &CommerceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatchErrorCode
impl PartialEq for BatchErrorCode
Source§impl Serialize for BatchErrorCode
impl Serialize for BatchErrorCode
impl StructuralPartialEq for BatchErrorCode
Auto Trait Implementations§
impl Freeze for BatchErrorCode
impl RefUnwindSafe for BatchErrorCode
impl Send for BatchErrorCode
impl Sync for BatchErrorCode
impl Unpin for BatchErrorCode
impl UnsafeUnpin for BatchErrorCode
impl UnwindSafe for BatchErrorCode
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