pub struct ColumnName(/* private fields */);Expand description
The name of a column or column alias.
Used in SELECT, INSERT, UPDATE SET, and RETURNING clauses.
Implementations§
Source§impl ColumnName
impl ColumnName
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new ColumnName from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<ColumnNameRef>
pub fn into_boxed_ref(self) -> Box<ColumnNameRef>
Converts this ColumnName into a Box<ColumnNameRef>
This will drop any excess capacity.
Methods from Deref<Target = ColumnNameRef>§
Trait Implementations§
Source§impl AsRef<ColumnNameRef> for ColumnName
impl AsRef<ColumnNameRef> for ColumnName
Source§fn as_ref(&self) -> &ColumnNameRef
fn as_ref(&self) -> &ColumnNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for ColumnName
impl AsRef<str> for ColumnName
Source§impl Borrow<ColumnNameRef> for ColumnName
impl Borrow<ColumnNameRef> for ColumnName
Source§fn borrow(&self) -> &ColumnNameRef
fn borrow(&self) -> &ColumnNameRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for ColumnName
impl Borrow<str> for ColumnName
Source§impl Clone for ColumnName
impl Clone for ColumnName
Source§fn clone(&self) -> ColumnName
fn clone(&self) -> ColumnName
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 ColumnName
impl Debug for ColumnName
Source§impl Deref for ColumnName
impl Deref for ColumnName
Source§impl Display for ColumnName
impl Display for ColumnName
impl Eq for ColumnName
Source§impl<'ʄ> Facet<'ʄ> for ColumnName
impl<'ʄ> Facet<'ʄ> for ColumnName
Source§impl From<&ColumnNameRef> for ColumnName
impl From<&ColumnNameRef> for ColumnName
Source§fn from(s: &ColumnNameRef) -> Self
fn from(s: &ColumnNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&str> for ColumnName
impl From<&str> for ColumnName
Source§impl From<Box<ColumnNameRef>> for ColumnName
impl From<Box<ColumnNameRef>> for ColumnName
Source§fn from(r: Box<ColumnNameRef>) -> Self
fn from(r: Box<ColumnNameRef>) -> Self
Converts to this type from the input type.
Source§impl From<ColumnName> for String
impl From<ColumnName> for String
Source§fn from(s: ColumnName) -> Self
fn from(s: ColumnName) -> Self
Converts to this type from the input type.
Source§impl From<ColumnName> for Box<ColumnNameRef>
impl From<ColumnName> for Box<ColumnNameRef>
Source§fn from(r: ColumnName) -> Self
fn from(r: ColumnName) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ColumnName> for Cow<'a, ColumnNameRef>
impl<'a> From<ColumnName> for Cow<'a, ColumnNameRef>
Source§fn from(owned: ColumnName) -> Self
fn from(owned: ColumnName) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, ColumnNameRef>> for ColumnName
impl<'a> From<Cow<'a, ColumnNameRef>> for ColumnName
Source§fn from(r: Cow<'a, ColumnNameRef>) -> Self
fn from(r: Cow<'a, ColumnNameRef>) -> Self
Converts to this type from the input type.
Source§impl From<String> for ColumnName
impl From<String> for ColumnName
Source§impl FromStr for ColumnName
impl FromStr for ColumnName
Source§impl Hash for ColumnName
impl Hash for ColumnName
Source§impl Ord for ColumnName
impl Ord for ColumnName
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 ColumnName
impl PartialEq for ColumnName
Source§fn eq(&self, other: &ColumnName) -> bool
fn eq(&self, other: &ColumnName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<&ColumnNameRef> for ColumnName
impl PartialEq<&ColumnNameRef> for ColumnName
Source§fn eq(&self, other: &&ColumnNameRef) -> bool
fn eq(&self, other: &&ColumnNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ColumnName> for ColumnNameRef
impl PartialEq<ColumnName> for ColumnNameRef
Source§fn eq(&self, other: &ColumnName) -> bool
fn eq(&self, other: &ColumnName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ColumnName> for &ColumnNameRef
impl PartialEq<ColumnName> for &ColumnNameRef
Source§fn eq(&self, other: &ColumnName) -> bool
fn eq(&self, other: &ColumnName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ColumnNameRef> for ColumnName
impl PartialEq<ColumnNameRef> for ColumnName
Source§fn eq(&self, other: &ColumnNameRef) -> bool
fn eq(&self, other: &ColumnNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ColumnName
impl PartialOrd for ColumnName
impl StructuralPartialEq for ColumnName
Auto Trait Implementations§
impl Freeze for ColumnName
impl RefUnwindSafe for ColumnName
impl Send for ColumnName
impl Sync for ColumnName
impl Unpin for ColumnName
impl UnsafeUnpin for ColumnName
impl UnwindSafe for ColumnName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.