pub struct GeneratedDefault {
pub column: &'static str,
pub value: GeneratedValue,
}Expand description
A column cratestack fills on create when the input leaves it out.
Generated in Rust rather than left to a database DEFAULT, so the
value is the same on every backend: an embedded runtime’s table may
predate its DEFAULT clauses (cratestack#1234), and cuid() has no
database equivalent at all.
The migration emitter still writes a matching database default where
one exists, for writes that do not go through cratestack.
Fields§
§column: &'static str§value: GeneratedValueTrait Implementations§
Source§impl Clone for GeneratedDefault
impl Clone for GeneratedDefault
impl Copy for GeneratedDefault
Source§impl Debug for GeneratedDefault
impl Debug for GeneratedDefault
impl Eq for GeneratedDefault
Source§impl PartialEq for GeneratedDefault
impl PartialEq for GeneratedDefault
impl StructuralPartialEq for GeneratedDefault
Auto Trait Implementations§
impl Forget for GeneratedDefault
impl Freeze for GeneratedDefault
impl Move for GeneratedDefault
impl RefUnwindSafe for GeneratedDefault
impl Send for GeneratedDefault
impl Sync for GeneratedDefault
impl Unpin for GeneratedDefault
impl UnsafeUnpin for GeneratedDefault
impl UnwindSafe for GeneratedDefault
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