pub struct IndexHint {
pub kind: Option<IndexHintKind>,
pub indexes: Vec<Cow<'static, str>>,
pub for_: Option<IndexHintScope>,
}Expand description
MySQL’s USE | FORCE | IGNORE INDEX [FOR …] (indexes).
Never contributes a bound argument: index names are identifiers.
Fields§
§kind: Option<IndexHintKind>Which hint. None is how a default-constructed hint stays absent.
indexes: Vec<Cow<'static, str>>The index names, quoted. May be empty — USE INDEX () is how MySQL is
told to use no index at all, so the parentheses are unconditional.
for_: Option<IndexHintScope>Restrict the hint to one phase of planning.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexHint
impl RefUnwindSafe for IndexHint
impl Send for IndexHint
impl Sync for IndexHint
impl Unpin for IndexHint
impl UnsafeUnpin for IndexHint
impl UnwindSafe for IndexHint
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