pub enum MapKey {}Expand description
Type-state marker: this leaf is one key of a dynamic-key map (from
TextMap::key / KeywordMap::key). The key’s value ops work as usual, but
it carries no flusso subfields and is not directly Sortable — its
real OpenSearch field is created by default dynamic mapping, which has no
keyword_lowercase subfield, so a plain .asc() would target a path that
doesn’t exist and 400 at query time. Sort a map by key through
TextMap::sort_key (then
SortBuilder::by) instead, which emits a correct
(fallback-capable) sort.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapKey
impl RefUnwindSafe for MapKey
impl Send for MapKey
impl Sync for MapKey
impl Unpin for MapKey
impl UnsafeUnpin for MapKey
impl UnwindSafe for MapKey
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