pub struct CreateIndexStmt {
pub index_name: String,
pub table_name: String,
pub columns: Vec<String>,
pub key_exprs: Vec<Option<(Expr, String)>>,
pub unique: bool,
pub if_not_exists: bool,
pub predicate_sql: Option<String>,
pub predicate_expr: Option<Expr>,
pub collations: Vec<Collation>,
pub kind: IndexKind,
pub concurrently: bool,
}Fields§
§index_name: String§table_name: String§columns: Vec<String>Per-key column name for IndexColSpec::Column entries; ignored for Expr entries
(those resolve through key_exprs[i]).
key_exprs: Vec<Option<(Expr, String)>>Parallel to columns: None means the key is a column reference, Some((expr, sql))
means the key is an expression. Empty Vec = all-column index.
unique: bool§if_not_exists: bool§predicate_sql: Option<String>§predicate_expr: Option<Expr>§collations: Vec<Collation>§kind: IndexKind§concurrently: boolTrait Implementations§
Source§impl Clone for CreateIndexStmt
impl Clone for CreateIndexStmt
Source§fn clone(&self) -> CreateIndexStmt
fn clone(&self) -> CreateIndexStmt
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 moreAuto Trait Implementations§
impl Freeze for CreateIndexStmt
impl RefUnwindSafe for CreateIndexStmt
impl Send for CreateIndexStmt
impl Sync for CreateIndexStmt
impl Unpin for CreateIndexStmt
impl UnsafeUnpin for CreateIndexStmt
impl UnwindSafe for CreateIndexStmt
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