pub struct FuzzySearchResponseBuilder { /* private fields */ }
Expand description
Builder for FuzzySearchResponse
.
Implementations§
Source§impl FuzzySearchResponseBuilder
impl FuzzySearchResponseBuilder
Sourcepub fn matches(&mut self, value: HashMap<String, Vec<FuzzyMatch>>) -> &mut Self
pub fn matches(&mut self, value: HashMap<String, Vec<FuzzyMatch>>) -> &mut Self
Matches is a map of Context types to IDs which fuzzy match a specified query.
Sourcepub fn truncations(&mut self, value: HashMap<String, bool>) -> &mut Self
pub fn truncations(&mut self, value: HashMap<String, bool>) -> &mut Self
Truncations indicates whether the matches for a particular Context have been truncated.
Sourcepub fn build(
&self,
) -> Result<FuzzySearchResponse, FuzzySearchResponseBuilderError>
pub fn build( &self, ) -> Result<FuzzySearchResponse, FuzzySearchResponseBuilderError>
Trait Implementations§
Source§impl Clone for FuzzySearchResponseBuilder
impl Clone for FuzzySearchResponseBuilder
Source§fn clone(&self) -> FuzzySearchResponseBuilder
fn clone(&self) -> FuzzySearchResponseBuilder
Returns a copy of the value. Read more
1.0.0 · 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 Freeze for FuzzySearchResponseBuilder
impl RefUnwindSafe for FuzzySearchResponseBuilder
impl Send for FuzzySearchResponseBuilder
impl Sync for FuzzySearchResponseBuilder
impl Unpin for FuzzySearchResponseBuilder
impl UnwindSafe for FuzzySearchResponseBuilder
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