pub struct ColumnRef {
pub table: Option<TableName>,
pub column: ColumnName,
}Expand description
A column reference, optionally qualified with table/alias.
Examples:
"id"(unqualified)"users"."id"(qualified with table name)"t0"."id"(qualified with table alias)
Fields§
§table: Option<TableName>Table name or alias qualifier. Renders as "table". prefix.
Example: "users" in "users"."id", or "t0" in "t0"."id"
column: ColumnNameThe column name. Renders as "column".
Example: "id" in "users"."id"
Implementations§
Source§impl ColumnRef
impl ColumnRef
pub fn new(column: ColumnName) -> Self
pub fn qualified(table: TableName, column: ColumnName) -> Self
Trait Implementations§
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