pub struct AddIndex<'a> {
pub add_span: Span,
pub index_type: IndexType,
pub if_not_exists: Option<Span>,
pub name: Option<Identifier<'a>>,
pub constraint: Option<(Span, Option<Identifier<'a>>)>,
pub cols: Vec<IndexCol<'a>>,
pub index_options: Vec<IndexOption<'a>>,
}Expand description
Add an index
Fields§
§add_span: SpanSpan of “ADD”
index_type: IndexTypeThe type of index to add
if_not_exists: Option<Span>Span of “IF NOT EXISTS” if specified
name: Option<Identifier<'a>>Named of index if specified
constraint: Option<(Span, Option<Identifier<'a>>)>Optional “CONSTRAINT” with symbol if specified
cols: Vec<IndexCol<'a>>Columns to add the index over
index_options: Vec<IndexOption<'a>>Options on the index
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AddIndex<'a>
impl<'a> RefUnwindSafe for AddIndex<'a>
impl<'a> Send for AddIndex<'a>
impl<'a> Sync for AddIndex<'a>
impl<'a> Unpin for AddIndex<'a>
impl<'a> UnsafeUnpin for AddIndex<'a>
impl<'a> UnwindSafe for AddIndex<'a>
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