pub enum IndexColumn {
Column(Cow<'static, str>),
Expression(Cow<'static, str>),
}Expand description
One key part of an IndexMeta.
Plain columns are emitted quoted; expressions are emitted verbatim (and are
therefore dialect-sensitive — use portable SQL such as
coalesce(channel_id, '')).
Variants§
Column(Cow<'static, str>)
A (already resolved) database column name.
Expression(Cow<'static, str>)
A raw SQL expression, e.g. coalesce(channel_id, '').
Implementations§
Source§impl IndexColumn
impl IndexColumn
Trait Implementations§
Source§impl Clone for IndexColumn
impl Clone for IndexColumn
Source§impl Debug for IndexColumn
impl Debug for IndexColumn
impl Eq for IndexColumn
Source§impl PartialEq for IndexColumn
impl PartialEq for IndexColumn
impl StructuralPartialEq for IndexColumn
Auto Trait Implementations§
impl Forget for IndexColumn
impl Freeze for IndexColumn
impl Move for IndexColumn
impl RefUnwindSafe for IndexColumn
impl Send for IndexColumn
impl Sync for IndexColumn
impl Unpin for IndexColumn
impl UnsafeUnpin for IndexColumn
impl UnwindSafe for IndexColumn
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