pub struct SqlColumnRef { /* private fields */ }Expand description
SQL column reference metadata.
Implementations§
Source§impl SqlColumnRef
impl SqlColumnRef
Sourcepub const fn new(name: SqlColumnName) -> Self
pub const fn new(name: SqlColumnName) -> Self
Creates an unqualified column reference.
Sourcepub const fn qualified(table: SqlTableName, name: SqlColumnName) -> Self
pub const fn qualified(table: SqlTableName, name: SqlColumnName) -> Self
Creates a table-qualified column reference.
Sourcepub fn with_alias(self, alias: SqlColumnAlias) -> Self
pub fn with_alias(self, alias: SqlColumnAlias) -> Self
Adds a column alias.
Sourcepub const fn table(&self) -> Option<&SqlTableName>
pub const fn table(&self) -> Option<&SqlTableName>
Returns the optional table qualifier.
Sourcepub const fn name(&self) -> &SqlColumnName
pub const fn name(&self) -> &SqlColumnName
Returns the column name.
Sourcepub const fn alias(&self) -> Option<&SqlColumnAlias>
pub const fn alias(&self) -> Option<&SqlColumnAlias>
Returns the optional alias.
Trait Implementations§
Source§impl Clone for SqlColumnRef
impl Clone for SqlColumnRef
Source§fn clone(&self) -> SqlColumnRef
fn clone(&self) -> SqlColumnRef
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 Debug for SqlColumnRef
impl Debug for SqlColumnRef
Source§impl Display for SqlColumnRef
impl Display for SqlColumnRef
Source§impl Hash for SqlColumnRef
impl Hash for SqlColumnRef
Source§impl Ord for SqlColumnRef
impl Ord for SqlColumnRef
Source§fn cmp(&self, other: &SqlColumnRef) -> Ordering
fn cmp(&self, other: &SqlColumnRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SqlColumnRef
impl PartialEq for SqlColumnRef
Source§fn eq(&self, other: &SqlColumnRef) -> bool
fn eq(&self, other: &SqlColumnRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlColumnRef
impl PartialOrd for SqlColumnRef
impl Eq for SqlColumnRef
impl StructuralPartialEq for SqlColumnRef
Auto Trait Implementations§
impl Freeze for SqlColumnRef
impl RefUnwindSafe for SqlColumnRef
impl Send for SqlColumnRef
impl Sync for SqlColumnRef
impl Unpin for SqlColumnRef
impl UnsafeUnpin for SqlColumnRef
impl UnwindSafe for SqlColumnRef
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