pub enum GeneratedValue {
Now,
Uuid,
UuidText,
Cuid,
}Expand description
What cratestack generates for a @default(now()), @default(uuid())
or @default(cuid()) column (cratestack#1209). Chosen per field type at
codegen, so the value binds as the column’s own type.
Variants§
Now
now() on a DateTime field.
Uuid
uuid() on a Uuid field.
UuidText
uuid() on a String field: the hyphenated text form.
Cuid
cuid() on a Cuid or String field.
Implementations§
Source§impl GeneratedValue
impl GeneratedValue
Sourcepub fn builtin(self) -> BuiltinDefault
pub fn builtin(self) -> BuiltinDefault
The cratestack function this value comes from.
Trait Implementations§
Source§impl Clone for GeneratedValue
impl Clone for GeneratedValue
impl Copy for GeneratedValue
Source§impl Debug for GeneratedValue
impl Debug for GeneratedValue
impl Eq for GeneratedValue
Source§impl PartialEq for GeneratedValue
impl PartialEq for GeneratedValue
impl StructuralPartialEq for GeneratedValue
Auto Trait Implementations§
impl Forget for GeneratedValue
impl Freeze for GeneratedValue
impl Move for GeneratedValue
impl RefUnwindSafe for GeneratedValue
impl Send for GeneratedValue
impl Sync for GeneratedValue
impl Unpin for GeneratedValue
impl UnsafeUnpin for GeneratedValue
impl UnwindSafe for GeneratedValue
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