pub enum IndexHint {
Name(String),
Keys(Array),
}Expand description
The index a query must use: a name, or a key pattern ({"name": 1}).
PHP: the string|array of MongoDB::hint().
Variants§
Trait Implementations§
impl StructuralPartialEq for IndexHint
Auto Trait Implementations§
impl Forget for IndexHint
impl Freeze for IndexHint
impl Move for IndexHint
impl RefUnwindSafe for IndexHintwhere
Atomic<usize>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for IndexHint
impl Sync for IndexHint
impl Unpin for IndexHint
impl UnsafeUnpin for IndexHintwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
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