pub struct IndexColumnDef {
pub expr: IndexExpr,
pub direction: Option<OrderDir>,
pub nulls: Option<NullsOrder>,
pub opclass: Option<String>,
pub collation: Option<String>,
}Expand description
A column or expression in an index.
Fields§
§expr: IndexExpr§direction: Option<OrderDir>§nulls: Option<NullsOrder>§opclass: Option<String>§collation: Option<String>Implementations§
Source§impl IndexColumnDef
impl IndexColumnDef
pub fn column(name: impl Into<String>) -> Self
pub fn expression(expr: Expr) -> Self
pub fn asc(self) -> Self
pub fn desc(self) -> Self
pub fn nulls_first(self) -> Self
pub fn nulls_last(self) -> Self
Trait Implementations§
Source§impl Clone for IndexColumnDef
impl Clone for IndexColumnDef
Source§fn clone(&self) -> IndexColumnDef
fn clone(&self) -> IndexColumnDef
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 moreAuto Trait Implementations§
impl Freeze for IndexColumnDef
impl !RefUnwindSafe for IndexColumnDef
impl Send for IndexColumnDef
impl Sync for IndexColumnDef
impl Unpin for IndexColumnDef
impl UnsafeUnpin for IndexColumnDef
impl !UnwindSafe for IndexColumnDef
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