pub struct EntityColumn<E: Entity> { /* private fields */ }Expand description
Static column symbol generated for entities and consumed later by the query builder.
Implementations§
Source§impl<E: Entity> EntityColumn<E>
impl<E: Entity> EntityColumn<E>
pub const fn new(rust_field: &'static str, column_name: &'static str) -> Self
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 + Entity> Clone for EntityColumn<E>
impl<E: Clone + Entity> 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: PartialEq + Entity> PartialEq for EntityColumn<E>
impl<E: PartialEq + Entity> 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 ==.impl<E: Copy + Entity> Copy for EntityColumn<E>
impl<E: Eq + Entity> Eq for EntityColumn<E>
impl<E: Entity> StructuralPartialEq for EntityColumn<E>
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