pub struct ColumnRef {
pub table: TableRef,
pub rust_field: &'static str,
pub column_name: &'static str,
}Fields§
§table: TableRef§rust_field: &'static str§column_name: &'static strImplementations§
Source§impl ColumnRef
impl ColumnRef
pub const fn new( table: TableRef, rust_field: &'static str, column_name: &'static str, ) -> Self
pub fn for_entity_column<E: Entity>(column: EntityColumn<E>) -> Self
pub fn for_entity_column_as<E: Entity>( column: EntityColumn<E>, alias: &'static str, ) -> Self
pub const fn with_table_alias(self, alias: &'static str) -> Self
Trait Implementations§
Source§impl<E: Entity> From<EntityColumn<E>> for ColumnRef
impl<E: Entity> From<EntityColumn<E>> for ColumnRef
Source§fn from(value: EntityColumn<E>) -> Self
fn from(value: EntityColumn<E>) -> Self
Converts to this type from the input type.
impl Copy for ColumnRef
impl Eq for ColumnRef
impl StructuralPartialEq for ColumnRef
Auto Trait Implementations§
impl Freeze for ColumnRef
impl RefUnwindSafe for ColumnRef
impl Send for ColumnRef
impl Sync for ColumnRef
impl Unpin for ColumnRef
impl UnsafeUnpin for ColumnRef
impl UnwindSafe for ColumnRef
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