#[non_exhaustive]pub enum IndexColumn {
TableColumn(IndexColumnTableColumn),
Expr(IndexColumnExpr),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TableColumn(IndexColumnTableColumn)
Expr(IndexColumnExpr)
Implementations§
Source§impl IndexColumn
impl IndexColumn
Sourcepub fn get_col_name(&self) -> Option<&DynIden>
pub fn get_col_name(&self) -> Option<&DynIden>
Get column name for this index component if it’s a TableColumn, None otherwise.
pub(crate) fn operator_class(&self) -> &Option<DynIden>
Sourcepub fn with_operator_class<I: IntoIden>(self, operator_class: I) -> Self
pub fn with_operator_class<I: IntoIden>(self, operator_class: I) -> Self
Set index operator class. Only available on Postgres.
Trait Implementations§
Source§impl Clone for IndexColumn
impl Clone for IndexColumn
Source§fn clone(&self) -> IndexColumn
fn clone(&self) -> IndexColumn
Returns a duplicate of the value. Read more
1.0.0 · 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 IndexColumn
impl Debug for IndexColumn
Source§impl From<(Expr, IndexOrder)> for IndexColumn
impl From<(Expr, IndexOrder)> for IndexColumn
Source§fn from(value: (Expr, IndexOrder)) -> Self
fn from(value: (Expr, IndexOrder)) -> Self
Converts to this type from the input type.
Source§impl From<(FunctionCall, IndexOrder)> for IndexColumn
impl From<(FunctionCall, IndexOrder)> for IndexColumn
Source§fn from(value: (FunctionCall, IndexOrder)) -> Self
fn from(value: (FunctionCall, IndexOrder)) -> Self
Converts to this type from the input type.
Source§impl<I> From<(I, IndexOrder)> for IndexColumnwhere
I: IntoIden,
impl<I> From<(I, IndexOrder)> for IndexColumnwhere
I: IntoIden,
Source§fn from(value: (I, IndexOrder)) -> Self
fn from(value: (I, IndexOrder)) -> Self
Converts to this type from the input type.
Source§impl<I> From<(I, u32, IndexOrder)> for IndexColumnwhere
I: IntoIden,
impl<I> From<(I, u32, IndexOrder)> for IndexColumnwhere
I: IntoIden,
Source§fn from(value: (I, u32, IndexOrder)) -> Self
fn from(value: (I, u32, IndexOrder)) -> Self
Converts to this type from the input type.
Source§impl From<Expr> for IndexColumn
impl From<Expr> for IndexColumn
Source§impl From<FunctionCall> for IndexColumn
impl From<FunctionCall> for IndexColumn
Source§fn from(value: FunctionCall) -> Self
fn from(value: FunctionCall) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexColumn
impl RefUnwindSafe for IndexColumn
impl Send for IndexColumn
impl Sync for IndexColumn
impl Unpin 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