pub enum Generated {
No,
Virtual,
Stored,
}Expand description
Whether a column is computed, and if so whether the file holds it.
The distinction decides where every later column’s value sits in the record, so it is a variant rather than a flag: a stored generated column occupies a slot like any other column, a virtual one occupies none. A generated column with neither keyword written out is virtual, which was checked against a file rather than assumed.
Variants§
Implementations§
Source§impl Generated
impl Generated
pub fn is_generated(self) -> bool
Sourcepub fn is_virtual(self) -> bool
pub fn is_virtual(self) -> bool
Whether the file holds no value for this column at all.
Trait Implementations§
impl Copy for Generated
impl Eq for Generated
impl StructuralPartialEq for Generated
Auto Trait Implementations§
impl Freeze for Generated
impl RefUnwindSafe for Generated
impl Send for Generated
impl Sync for Generated
impl Unpin for Generated
impl UnsafeUnpin for Generated
impl UnwindSafe for Generated
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