pub struct IdParseError {
pub name: &'static str,
pub input: String,
}Expand description
A string that is not a UUID, for a [define_id!] id type.
The message names the type and repeats the input; the uuid crate’s own errors (“invalid group length in group 4: expected 12, found 9”) reached agents verbatim and told them nothing they could act on.
Fields§
§name: &'static strThe id type, e.g. "PostId"
input: StringTrait Implementations§
Source§impl Clone for IdParseError
impl Clone for IdParseError
Source§impl Debug for IdParseError
impl Debug for IdParseError
Source§impl Display for IdParseError
impl Display for IdParseError
impl Eq for IdParseError
Source§impl Error for IdParseError
impl Error for IdParseError
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 IdParseError
impl PartialEq for IdParseError
impl StructuralPartialEq for IdParseError
Auto Trait Implementations§
impl Freeze for IdParseError
impl RefUnwindSafe for IdParseError
impl Send for IdParseError
impl Sync for IdParseError
impl Unpin for IdParseError
impl UnsafeUnpin for IdParseError
impl UnwindSafe for IdParseError
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