pub struct ParseIdError {
pub typename: &'static str,
pub expected: &'static str,
}
Expand description
§Sea-orm Newtype ID is a ID generation system 🐚
- 🎲 Currently uses
nanoid
- 🦓 Stripe style IDs allow for users to see what kind of IDs are being used without having to log them in the database
§Rationale
String
ly typed IDs can be very error prone, think of the case where you are using more than one ID at a time Error for parsing
Fields§
§typename: &'static str
§expected: &'static str
Trait Implementations§
Source§impl Clone for ParseIdError
impl Clone for ParseIdError
Source§fn clone(&self) -> ParseIdError
fn clone(&self) -> ParseIdError
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 ParseIdError
impl Debug for ParseIdError
Source§impl Display for ParseIdError
impl Display for ParseIdError
Source§impl Error for ParseIdError
impl Error for ParseIdError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for ParseIdError
impl RefUnwindSafe for ParseIdError
impl Send for ParseIdError
impl Sync for ParseIdError
impl Unpin for ParseIdError
impl UnwindSafe for ParseIdError
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