pub struct SelectProjection {
pub expr: Expr,
pub alias: Option<&'static str>,
}Fields§
§expr: Expr§alias: Option<&'static str>Implementations§
Source§impl SelectProjection
impl SelectProjection
pub fn column<E>(column: EntityColumn<E>) -> SelectProjectionwhere
E: Entity,
pub fn expr(expr: Expr) -> SelectProjection
pub fn expr_as(expr: Expr, alias: &'static str) -> SelectProjection
Trait Implementations§
Source§impl Clone for SelectProjection
impl Clone for SelectProjection
Source§fn clone(&self) -> SelectProjection
fn clone(&self) -> SelectProjection
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 moreSource§impl Debug for SelectProjection
impl Debug for SelectProjection
Source§impl<E: Entity> From<AliasedEntityColumn<E>> for SelectProjection
impl<E: Entity> From<AliasedEntityColumn<E>> for SelectProjection
Source§fn from(value: AliasedEntityColumn<E>) -> Self
fn from(value: AliasedEntityColumn<E>) -> Self
Converts to this type from the input type.
Source§impl<E> From<EntityColumn<E>> for SelectProjectionwhere
E: Entity,
impl<E> From<EntityColumn<E>> for SelectProjectionwhere
E: Entity,
Source§fn from(value: EntityColumn<E>) -> SelectProjection
fn from(value: EntityColumn<E>) -> SelectProjection
Converts to this type from the input type.
Source§impl From<Expr> for SelectProjection
impl From<Expr> for SelectProjection
Source§fn from(value: Expr) -> SelectProjection
fn from(value: Expr) -> SelectProjection
Converts to this type from the input type.
Source§impl PartialEq for SelectProjection
impl PartialEq for SelectProjection
Source§fn eq(&self, other: &SelectProjection) -> bool
fn eq(&self, other: &SelectProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SelectProjections for SelectProjection
impl SelectProjections for SelectProjection
fn into_select_projections(self) -> Vec<SelectProjection>
impl StructuralPartialEq for SelectProjection
Auto Trait Implementations§
impl Freeze for SelectProjection
impl RefUnwindSafe for SelectProjection
impl Send for SelectProjection
impl Sync for SelectProjection
impl Unpin for SelectProjection
impl UnsafeUnpin for SelectProjection
impl UnwindSafe for SelectProjection
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