pub struct Index {
pub name: String,
pub table: String,
pub columns: Vec<String>,
pub unique: bool,
pub method: IndexMethod,
pub where_clause: Option<CheckExpr>,
pub include: Vec<String>,
pub concurrently: bool,
}Fields§
§name: String§table: String§columns: Vec<String>§unique: bool§method: IndexMethodIndex method (Phase 4): btree, hash, gin, gist, brin
where_clause: Option<CheckExpr>Partial index WHERE clause
include: Vec<String>INCLUDE columns (covering index)
concurrently: boolCREATE CONCURRENTLY
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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