pub enum IdFormat {
Timestamp,
RandomHex,
Short,
Prefixed,
}Available on crate feature
id only.Expand description
ID format options.
Variants§
Timestamp
Timestamp-based ID (sortable, 20 chars).
RandomHex
Random hex ID (32 chars).
Short
Short random ID (12 chars, base62).
Prefixed
Prefixed ID with custom prefix.
Trait Implementations§
impl Copy for IdFormat
impl Eq for IdFormat
impl StructuralPartialEq for IdFormat
Auto Trait Implementations§
impl Freeze for IdFormat
impl RefUnwindSafe for IdFormat
impl Send for IdFormat
impl Sync for IdFormat
impl Unpin for IdFormat
impl UnsafeUnpin for IdFormat
impl UnwindSafe for IdFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.