pub struct Index {
pub name: Slice,
pub table: Slice,
pub drop: bool,
pub quiet: bool,
pub unique: bool,
pub or_replace: bool,
pub using: StrRef,
pub elements: Slice,
}Expand description
CREATE [UNIQUE] INDEX name ON table (elements) or DROP INDEX name.
Fields§
§name: SliceThe index, as a run of parts. One part on a create, where the grammar allows no more.
table: SliceThe table a create is over, as a run of parts, and empty on a drop.
drop: boolWhether this is a DROP rather than a CREATE.
quiet: boolWhether IF NOT EXISTS was written on a create or IF EXISTS on a drop.
unique: boolWhether UNIQUE was written.
or_replace: boolWhether OR REPLACE was written.
using: StrRefThe kind after USING, or NONE when none was written.
elements: SliceThe elements, each a column or an expression, in the order written.
Trait Implementations§
impl Copy for Index
impl Eq for Index
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnsafeUnpin 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