pub struct CreateIndex {
pub index: IndexId,
pub on: TableId,
pub columns: Vec<OrderByExpr>,
pub unique: bool,
}Fields§
§index: IndexIdName of the index
on: TableIdWhich table to index
columns: Vec<OrderByExpr>The columns to index
unique: boolWhen true, the index is unique
Trait Implementations§
Source§impl Clone for CreateIndex
impl Clone for CreateIndex
Source§fn clone(&self) -> CreateIndex
fn clone(&self) -> CreateIndex
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 CreateIndex
impl Debug for CreateIndex
Source§impl From<CreateIndex> for Statement
impl From<CreateIndex> for Statement
Source§fn from(value: CreateIndex) -> Self
fn from(value: CreateIndex) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateIndex
impl RefUnwindSafe for CreateIndex
impl Send for CreateIndex
impl Sync for CreateIndex
impl Unpin for CreateIndex
impl UnwindSafe for CreateIndex
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