pub struct CreateIndexStmt {
pub collection: String,
pub field: String,
pub field_type: String,
pub options: Vec<(String, Value)>,
pub wait: Option<bool>,
}Expand description
CREATE INDEX ON COLLECTION <c> FOR <field> [TYPE t] [WITH (…)].
Fields§
§collection: StringCollection to index.
field: StringPayload field to index.
field_type: StringIndex type (keyword, integer, float, geo, text, bool, datetime, uuid).
options: Vec<(String, Value)>WITH (…) index options (e.g. is_tenant, prefix).
wait: Option<bool>Optional index creation durability confirmation (WAIT true / WAIT false).
Trait Implementations§
Source§impl Clone for CreateIndexStmt
impl Clone for CreateIndexStmt
Source§impl Debug for CreateIndexStmt
impl Debug for CreateIndexStmt
Source§impl PartialEq for CreateIndexStmt
impl PartialEq for CreateIndexStmt
impl StructuralPartialEq for CreateIndexStmt
Auto 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