pub struct CreateIndexOp {
pub name: String,
pub table: String,
pub columns: Vec<String>,
pub unique: bool,
pub index_type: IndexType,
pub if_not_exists: bool,
pub condition: Option<String>,
}Expand description
Create index operation.
Fields§
§name: StringIndex name.
table: StringTable name.
columns: Vec<String>Columns to index.
unique: boolWhether this is a unique index.
index_type: IndexTypeIndex type.
if_not_exists: boolWhether to use IF NOT EXISTS.
condition: Option<String>Partial index condition (WHERE clause).
Trait Implementations§
Source§impl Clone for CreateIndexOp
impl Clone for CreateIndexOp
Source§fn clone(&self) -> CreateIndexOp
fn clone(&self) -> CreateIndexOp
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 CreateIndexOp
impl Debug for CreateIndexOp
Source§impl From<CreateIndexOp> for Operation
impl From<CreateIndexOp> for Operation
Source§fn from(op: CreateIndexOp) -> Self
fn from(op: CreateIndexOp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CreateIndexOp
impl PartialEq for CreateIndexOp
impl Eq for CreateIndexOp
impl StructuralPartialEq for CreateIndexOp
Auto Trait Implementations§
impl Freeze for CreateIndexOp
impl RefUnwindSafe for CreateIndexOp
impl Send for CreateIndexOp
impl Sync for CreateIndexOp
impl Unpin for CreateIndexOp
impl UnwindSafe for CreateIndexOp
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