pub enum EntityIdError {
InvalidFormat,
InvalidIdentifier,
}Expand description
Errors that can occur when working with entity IDs
Variants§
InvalidFormat
The ID string doesn’t have the expected format (prefix + delimiter + identifier)
InvalidIdentifier
The identifier part of the ID string is not a valid identifier (UUID or ULID)
Trait Implementations§
Source§impl Clone for EntityIdError
impl Clone for EntityIdError
Source§fn clone(&self) -> EntityIdError
fn clone(&self) -> EntityIdError
Returns a copy 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 EntityIdError
impl Debug for EntityIdError
Source§impl Display for EntityIdError
impl Display for EntityIdError
Source§impl Error for EntityIdError
impl Error for EntityIdError
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 PartialEq for EntityIdError
impl PartialEq for EntityIdError
impl Eq for EntityIdError
impl StructuralPartialEq for EntityIdError
Auto Trait Implementations§
impl Freeze for EntityIdError
impl RefUnwindSafe for EntityIdError
impl Send for EntityIdError
impl Sync for EntityIdError
impl Unpin for EntityIdError
impl UnwindSafe for EntityIdError
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