pub struct GeneratedDef {
pub expression: &'static str,
pub gen_type: GeneratedType,
}Expand description
Generated column configuration (const-friendly)
Fields§
§expression: &'static strSQL expression for generation
gen_type: GeneratedTypeGeneration type: stored or virtual
Implementations§
Source§impl GeneratedDef
impl GeneratedDef
Sourcepub const fn virtual_col(expression: &'static str) -> Self
pub const fn virtual_col(expression: &'static str) -> Self
Create a new virtual generated column
Sourcepub const fn into_generated(self) -> Generated
pub const fn into_generated(self) -> Generated
Convert to runtime type
Trait Implementations§
Source§impl Clone for GeneratedDef
impl Clone for GeneratedDef
Source§fn clone(&self) -> GeneratedDef
fn clone(&self) -> GeneratedDef
Returns a duplicate of the value. Read more
1.0.0 · 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 GeneratedDef
impl Debug for GeneratedDef
Source§impl Hash for GeneratedDef
impl Hash for GeneratedDef
Source§impl PartialEq for GeneratedDef
impl PartialEq for GeneratedDef
impl Copy for GeneratedDef
impl Eq for GeneratedDef
impl StructuralPartialEq for GeneratedDef
Auto Trait Implementations§
impl Freeze for GeneratedDef
impl RefUnwindSafe for GeneratedDef
impl Send for GeneratedDef
impl Sync for GeneratedDef
impl Unpin for GeneratedDef
impl UnwindSafe for GeneratedDef
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