#[non_exhaustive]pub enum GeneratedIdError {
InvalidUuid,
NonCanonical,
WrongVersion,
WrongVariant,
}Expand description
Parse or construction failure for a StateKnot-generated identifier.
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.
InvalidUuid
The input was not a UUID.
NonCanonical
The input used a valid but non-canonical UUID representation.
WrongVersion
The UUID was not version 7.
WrongVariant
The UUID did not use the RFC 4122/RFC 9562 variant.
Trait Implementations§
Source§impl Clone for GeneratedIdError
impl Clone for GeneratedIdError
Source§impl Debug for GeneratedIdError
impl Debug for GeneratedIdError
Source§impl Display for GeneratedIdError
impl Display for GeneratedIdError
impl Eq for GeneratedIdError
Source§impl Error for GeneratedIdError
impl Error for GeneratedIdError
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 GeneratedIdError
impl PartialEq for GeneratedIdError
impl StructuralPartialEq for GeneratedIdError
Auto Trait Implementations§
impl Forget for GeneratedIdError
impl Freeze for GeneratedIdError
impl Move for GeneratedIdError
impl RefUnwindSafe for GeneratedIdError
impl Send for GeneratedIdError
impl Sync for GeneratedIdError
impl Unpin for GeneratedIdError
impl UnsafeUnpin for GeneratedIdError
impl UnwindSafe for GeneratedIdError
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