pub struct Id;
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 Id generation lives here
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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