pub struct Index { /* private fields */ }
Expand description
An index builder.
Implementations§
source§impl Index
impl Index
sourcepub fn new(name: &str, key_path: &str) -> Self
pub fn new(name: &str, key_path: &str) -> Self
Creates a new index with given name and key path
sourcepub fn new_array<'a>(
name: &str,
key_path_array: impl IntoIterator<Item = &'a str>,
) -> Self
pub fn new_array<'a>( name: &str, key_path_array: impl IntoIterator<Item = &'a str>, ) -> Self
Creates a new index with given name and key path array
sourcepub fn multi_entry(self, multi_entry: bool) -> Self
pub fn multi_entry(self, multi_entry: bool) -> Self
Specify whether the index should be multi-entry, i.e., type of the value contained in key path is an array
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin 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