pub enum IdStrategy {
Uuidv7,
Ulid,
Manual,
}Expand description
How a Record’s identifier is generated.
Variants§
Uuidv7
Time-ordered UUID v7. The default when id carries no strategy.
Ulid
Lexicographically sortable ULID.
Manual
The id is supplied by the caller (no automatic generation).
Trait Implementations§
Source§impl Clone for IdStrategy
impl Clone for IdStrategy
Source§fn clone(&self) -> IdStrategy
fn clone(&self) -> IdStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IdStrategy
impl Debug for IdStrategy
Source§impl Default for IdStrategy
impl Default for IdStrategy
Source§fn default() -> IdStrategy
fn default() -> IdStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for IdStrategy
impl PartialEq for IdStrategy
Source§fn eq(&self, other: &IdStrategy) -> bool
fn eq(&self, other: &IdStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IdStrategy
impl Eq for IdStrategy
impl StructuralPartialEq for IdStrategy
Auto Trait Implementations§
impl Freeze for IdStrategy
impl RefUnwindSafe for IdStrategy
impl Send for IdStrategy
impl Sync for IdStrategy
impl Unpin for IdStrategy
impl UnsafeUnpin for IdStrategy
impl UnwindSafe for IdStrategy
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