#[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.
Sourcepub fn with_operator_class<I>(self, operator_class: I) -> IndexColumnwhere
I: IntoIden,
pub fn with_operator_class<I>(self, operator_class: I) -> IndexColumnwhere
I: IntoIden,
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)) -> IndexColumn
fn from(value: (Expr, IndexOrder)) -> IndexColumn
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)) -> IndexColumn
fn from(value: (FunctionCall, IndexOrder)) -> IndexColumn
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)) -> IndexColumn
fn from(value: (I, IndexOrder)) -> IndexColumn
Converts to this type from the input type.
Source§impl<I> From<(I, u32)> for IndexColumnwhere
I: IntoIden,
impl<I> From<(I, u32)> for IndexColumnwhere
I: IntoIden,
Source§fn from(value: (I, u32)) -> IndexColumn
fn from(value: (I, u32)) -> IndexColumn
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)) -> IndexColumn
fn from(value: (I, u32, IndexOrder)) -> IndexColumn
Converts to this type from the input type.
Source§impl From<Expr> for IndexColumn
impl From<Expr> for IndexColumn
Source§fn from(value: Expr) -> IndexColumn
fn from(value: Expr) -> IndexColumn
Converts to this type from the input type.
Source§impl From<FunctionCall> for IndexColumn
impl From<FunctionCall> for IndexColumn
Source§fn from(value: FunctionCall) -> IndexColumn
fn from(value: FunctionCall) -> IndexColumn
Converts to this type from the input type.
Source§impl<I> From<I> for IndexColumnwhere
I: IntoIden,
impl<I> From<I> for IndexColumnwhere
I: IntoIden,
Source§fn from(value: I) -> IndexColumn
fn from(value: I) -> IndexColumn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more