pub struct CollectionSearchIndexDefinition<T> { /* private fields */ }Implementations§
Source§impl<T> CollectionSearchIndexDefinition<T>
impl<T> CollectionSearchIndexDefinition<T>
pub fn new(name: impl Into<String>) -> Self
pub fn with_root_name(self, root_name: impl Into<String>) -> Self
pub fn with_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_options(self, options: SearchIndexOptions) -> Self
pub fn with_text( self, text: impl Fn(&T) -> Vec<String> + Send + Sync + 'static, ) -> Self
pub fn with_entries( self, entries: impl for<'a> Fn(&T, &CollectionEntryContext<'a>) -> Vec<CollectionSearchEntry> + Send + Sync + 'static, ) -> Self
pub fn name(&self) -> &str
pub fn root_name(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
pub fn options(&self) -> &SearchIndexOptions
Trait Implementations§
Source§impl<T: Clone> Clone for CollectionSearchIndexDefinition<T>
impl<T: Clone> Clone for CollectionSearchIndexDefinition<T>
Source§fn clone(&self) -> CollectionSearchIndexDefinition<T>
fn clone(&self) -> CollectionSearchIndexDefinition<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for CollectionSearchIndexDefinition<T>
impl<T> !RefUnwindSafe for CollectionSearchIndexDefinition<T>
impl<T> Send for CollectionSearchIndexDefinition<T>
impl<T> Sync for CollectionSearchIndexDefinition<T>
impl<T> Unpin for CollectionSearchIndexDefinition<T>
impl<T> UnsafeUnpin for CollectionSearchIndexDefinition<T>
impl<T> !UnwindSafe for CollectionSearchIndexDefinition<T>
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