pub enum UuidError {
InvalidInputSyntax,
}Expand description
Why uuid_in refuses a text, one variant per message it raises.
use sql_values::postgres::{PgUuid, UuidError};
let error = PgUuid::parse("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a1").unwrap_err();
assert_eq!(error, UuidError::InvalidInputSyntax);
assert_eq!(error.to_string(), "invalid input syntax for type uuid");Variants§
InvalidInputSyntax
Text other than 32 hexadecimal digits, with at most one hyphen after each group of four
but the last, optionally between { and }, and with nothing around them.
Trait Implementations§
impl Copy for UuidError
impl Eq for UuidError
Source§impl Error for UuidError
impl Error for UuidError
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()
impl StructuralPartialEq for UuidError
Auto Trait Implementations§
impl Forget for UuidError
impl Freeze for UuidError
impl Move for UuidError
impl RefUnwindSafe for UuidError
impl Send for UuidError
impl Sync for UuidError
impl Unpin for UuidError
impl UnsafeUnpin for UuidError
impl UnwindSafe for UuidError
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