Skip to main content

EntityColumn

Struct EntityColumn 

Source
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,

Source

pub const fn new( rust_field: &'static str, column_name: &'static str, ) -> EntityColumn<E>

Source

pub const fn rust_field(&self) -> &'static str

Source

pub const fn column_name(&self) -> &'static str

Source

pub fn entity_metadata(&self) -> &'static EntityMetadata

Source

pub fn metadata(&self) -> &'static ColumnMetadata

Trait Implementations§

Source§

impl<E> Clone for EntityColumn<E>
where E: Clone + Entity,

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<E> Debug for EntityColumn<E>
where E: Debug + Entity,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<E: Entity> EntityColumnAliasExt<E> for EntityColumn<E>

Source§

fn aliased(self, alias: &'static str) -> AliasedEntityColumn<E>

Source§

impl<E: Entity> EntityColumnOrderExt<E> for EntityColumn<E>

Source§

fn asc(self) -> OrderBy

Source§

fn desc(self) -> OrderBy

Source§

impl<E: Entity> EntityColumnPredicateExt<E> for EntityColumn<E>

Source§

fn eq<V>(self, value: V) -> Predicate
where V: SqlTypeMapping,

Source§

fn ne<V>(self, value: V) -> Predicate
where V: SqlTypeMapping,

Source§

fn gt<V>(self, value: V) -> Predicate
where V: SqlTypeMapping,

Source§

fn gte<V>(self, value: V) -> Predicate
where V: SqlTypeMapping,

Source§

fn lt<V>(self, value: V) -> Predicate
where V: SqlTypeMapping,

Source§

fn lte<V>(self, value: V) -> Predicate
where V: SqlTypeMapping,

Source§

fn is_null(self) -> Predicate

Source§

fn is_not_null(self) -> Predicate

Source§

fn contains(self, value: impl Into<String>) -> Predicate

Source§

fn starts_with(self, value: impl Into<String>) -> Predicate

Source§

fn ends_with(self, value: impl Into<String>) -> Predicate

Source§

impl<E> From<EntityColumn<E>> for SelectProjection
where E: Entity,

Source§

fn from(value: EntityColumn<E>) -> SelectProjection

Converts to this type from the input type.
Source§

impl<E> PartialEq for EntityColumn<E>
where E: PartialEq + Entity,

Source§

fn eq(&self, other: &EntityColumn<E>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<E> SelectProjections for EntityColumn<E>
where E: Entity,

Source§

impl<E> Copy for EntityColumn<E>
where E: Copy + Entity,

Source§

impl<E> Eq for EntityColumn<E>
where E: Eq + Entity,

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more