pub struct IndexDef {
pub name: String,
pub table: String,
pub columns: Vec<String>,
pub unique: bool,
pub index_type: Option<String>,
pub where_clause: Option<String>,
}Expand description
Index definition for CREATE INDEX
Fields§
§name: StringIndex name
table: StringTarget table
columns: Vec<String>Columns to index (ordered)
unique: boolWhether the index is unique.
index_type: Option<String>Index type (e.g., “keyword”, “integer”, “float”, “geo”, “text”)
where_clause: Option<String>Optional partial-index predicate (WHERE ... body without the keyword).
Trait Implementations§
impl StructuralPartialEq for IndexDef
Auto Trait Implementations§
impl Freeze for IndexDef
impl RefUnwindSafe for IndexDef
impl Send for IndexDef
impl Sync for IndexDef
impl Unpin for IndexDef
impl UnsafeUnpin for IndexDef
impl UnwindSafe for IndexDef
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