Enum ExprIncoming
pub enum ExprIncoming {
Model(ModelId),
Table(TableId),
}Expand description
The row proposed by an upsert’s create branch.
Projecting a field from this expression references the proposed value rather
than the value already stored in the conflicting row. SQL serializers map
the projected expression to the backend’s proposed-row syntax, such as
PostgreSQL’s EXCLUDED relation.
Variants§
Model(ModelId)
The proposed application-model row before lowering.
Table(TableId)
The proposed database-table row after lowering.
Implementations§
§impl ExprIncoming
impl ExprIncoming
pub fn model(model: ModelId) -> ExprIncoming
pub fn model(model: ModelId) -> ExprIncoming
Creates an incoming application-model row.
pub fn table(table: TableId) -> ExprIncoming
pub fn table(table: TableId) -> ExprIncoming
Creates an incoming database-table row.
Trait Implementations§
§impl Clone for ExprIncoming
impl Clone for ExprIncoming
§fn clone(&self) -> ExprIncoming
fn clone(&self) -> ExprIncoming
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ExprIncoming
impl Debug for ExprIncoming
§impl From<ExprIncoming> for Expr
impl From<ExprIncoming> for Expr
§fn from(value: ExprIncoming) -> Expr
fn from(value: ExprIncoming) -> Expr
Converts to this type from the input type.
§impl PartialEq for ExprIncoming
impl PartialEq for ExprIncoming
impl StructuralPartialEq for ExprIncoming
Auto Trait Implementations§
impl Freeze for ExprIncoming
impl RefUnwindSafe for ExprIncoming
impl Send for ExprIncoming
impl Sync for ExprIncoming
impl Unpin for ExprIncoming
impl UnsafeUnpin for ExprIncoming
impl UnwindSafe for ExprIncoming
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