pub struct EntityColumn<E>where
E: Entity,{ /* private fields */ }Expand description
Static column symbol generated for entities and consumed later by the query builder.
Implementations§
Source§impl<E> EntityColumn<E>where
E: Entity,
impl<E> EntityColumn<E>where
E: Entity,
pub const fn new( rust_field: &'static str, column_name: &'static str, ) -> EntityColumn<E>
pub const fn rust_field(&self) -> &'static str
pub const fn column_name(&self) -> &'static str
pub fn entity_metadata(&self) -> &'static EntityMetadata
pub fn metadata(&self) -> &'static ColumnMetadata
Trait Implementations§
Source§impl<E> Clone for EntityColumn<E>
impl<E> Clone for EntityColumn<E>
Source§fn clone(&self) -> EntityColumn<E>
fn clone(&self) -> EntityColumn<E>
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<E> Debug for EntityColumn<E>
impl<E> Debug for EntityColumn<E>
Source§impl<E: Entity> EntityColumnAliasExt<E> for EntityColumn<E>
impl<E: Entity> EntityColumnAliasExt<E> for EntityColumn<E>
fn aliased(self, alias: &'static str) -> AliasedEntityColumn<E>
Source§impl<E: Entity> EntityColumnOrderExt<E> for EntityColumn<E>
impl<E: Entity> EntityColumnOrderExt<E> for EntityColumn<E>
Source§impl<E: Entity> EntityColumnPredicateExt<E> for EntityColumn<E>
impl<E: Entity> EntityColumnPredicateExt<E> for EntityColumn<E>
fn eq<V>(self, value: V) -> Predicatewhere
V: SqlTypeMapping,
fn ne<V>(self, value: V) -> Predicatewhere
V: SqlTypeMapping,
fn gt<V>(self, value: V) -> Predicatewhere
V: SqlTypeMapping,
fn gte<V>(self, value: V) -> Predicatewhere
V: SqlTypeMapping,
fn lt<V>(self, value: V) -> Predicatewhere
V: SqlTypeMapping,
fn lte<V>(self, value: V) -> Predicatewhere
V: SqlTypeMapping,
fn is_null(self) -> Predicate
fn is_not_null(self) -> Predicate
fn contains(self, value: impl Into<String>) -> Predicate
fn starts_with(self, value: impl Into<String>) -> Predicate
fn ends_with(self, value: impl Into<String>) -> Predicate
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<E> GroupByExpressions for EntityColumn<E>where
E: Entity,
impl<E> GroupByExpressions for EntityColumn<E>where
E: Entity,
fn into_group_by_expressions(self) -> Vec<Expr>
Source§impl<E> PartialEq for EntityColumn<E>
impl<E> PartialEq for EntityColumn<E>
Source§fn eq(&self, other: &EntityColumn<E>) -> bool
fn eq(&self, other: &EntityColumn<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<E> SelectProjections for EntityColumn<E>where
E: Entity,
impl<E> SelectProjections for EntityColumn<E>where
E: Entity,
fn into_select_projections(self) -> Vec<SelectProjection>
impl<E> Copy for EntityColumn<E>
impl<E> Eq for EntityColumn<E>
impl<E> StructuralPartialEq for EntityColumn<E>where
E: Entity,
Auto Trait Implementations§
impl<E> Freeze for EntityColumn<E>
impl<E> RefUnwindSafe for EntityColumn<E>
impl<E> Send for EntityColumn<E>
impl<E> Sync for EntityColumn<E>
impl<E> Unpin for EntityColumn<E>
impl<E> UnsafeUnpin for EntityColumn<E>
impl<E> UnwindSafe for EntityColumn<E>
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