pub struct IndexOptions {
pub unique: bool,
pub kind: Option<IndexType>,
pub method: String,
pub operator_class: String,
pub lengths: Vec<(String, i64)>,
pub orders: Vec<(String, String)>,
pub collations: Vec<(String, String)>,
pub raw_columns: Vec<String>,
pub concurrently: bool,
}Expand description
The options of a standalone CREATE INDEX statement.
PHP: the optional parameters of Schema::createIndex().
Fields§
§unique: boolCREATE UNIQUE INDEX.
kind: Option<IndexType>The kind (fulltext, spatial, …), when not unique; None for a
plain index.
method: StringThe method (USING ...), or empty.
operator_class: StringThe operator class, or empty.
lengths: Vec<(String, i64)>Prefix lengths, by column.
orders: Vec<(String, String)>Orders, by column.
collations: Vec<(String, String)>Collations, by column.
raw_columns: Vec<String>Raw SQL expressions appended to the column list.
concurrently: boolCREATE INDEX CONCURRENTLY (PostgreSQL only; ignored elsewhere).
Trait Implementations§
Source§impl Clone for IndexOptions
impl Clone for IndexOptions
Source§impl Debug for IndexOptions
impl Debug for IndexOptions
Source§impl Default for IndexOptions
impl Default for IndexOptions
Source§impl PartialEq for IndexOptions
impl PartialEq for IndexOptions
impl StructuralPartialEq for IndexOptions
Auto Trait Implementations§
impl Forget for IndexOptions
impl Freeze for IndexOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, i64)>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<String>: Freeze,
impl Move for IndexOptions
impl RefUnwindSafe for IndexOptions
impl Send for IndexOptionswhere
RawVecInner: Send,
impl Sync for IndexOptionswhere
RawVecInner: Sync,
impl Unpin for IndexOptions
impl UnsafeUnpin for IndexOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, i64)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for IndexOptionswhere
RawVecInner: UnwindSafe,
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