pub struct UuidGenerator;
Expand description
An IdGenerator
implementation that uses UUID v4 to create unique identifiers.
This generator produces random UUIDs (version 4), which are highly unlikely
to collide and difficult to predict. It is therefore well-suited for
generating identifiers such as SessionId
or other values where uniqueness is important.
Trait Implementations§
Source§impl<T> IdGenerator<T> for UuidGenerator
impl<T> IdGenerator<T> for UuidGenerator
Auto Trait Implementations§
impl Freeze for UuidGenerator
impl RefUnwindSafe for UuidGenerator
impl Send for UuidGenerator
impl Sync for UuidGenerator
impl Unpin for UuidGenerator
impl UnwindSafe for UuidGenerator
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