pub struct IdTool;Implementations§
Source§impl IdTool
impl IdTool
pub fn new() -> Self
pub fn uuid(&self) -> MustPurpose<String>
pub fn uuid_v7(&self) -> MustPurpose<String>
pub fn ulid(&self) -> MustPurpose<String>
pub fn nanoid(&self) -> MustPurpose<String>
pub fn with_prefix(&self, prefix: &str) -> MustPurpose<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdTool
impl RefUnwindSafe for IdTool
impl Send for IdTool
impl Sync for IdTool
impl Unpin for IdTool
impl UnsafeUnpin for IdTool
impl UnwindSafe for IdTool
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