pub enum ColumnSource {
Row(usize),
Expr(BoundExpr),
Generated(BoundExpr),
}Expand description
Where one column’s value comes from in an INSERT.
Variants§
Row(usize)
The value at this position of the source row.
Expr(BoundExpr)
An expression evaluated once per row, which is what a DEFAULT is.
Generated(BoundExpr)
A generated column, computed from the rest of the row rather than from anything the statement supplied.
It is its own variant because it is evaluated at a different time: a
DEFAULT is a value like any other, while a generated column reads the
row it is part of and so cannot be computed until the rest of it is.
Trait Implementations§
Source§impl Clone for ColumnSource
impl Clone for ColumnSource
Source§impl Debug for ColumnSource
impl Debug for ColumnSource
Source§impl PartialEq for ColumnSource
impl PartialEq for ColumnSource
impl StructuralPartialEq for ColumnSource
Auto Trait Implementations§
impl !Send for ColumnSource
impl !Sync for ColumnSource
impl Freeze for ColumnSource
impl RefUnwindSafe for ColumnSource
impl Unpin for ColumnSource
impl UnsafeUnpin for ColumnSource
impl UnwindSafe for ColumnSource
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