pub struct FtSugGetOptions { /* private fields */ }Expand description
Options for the ft_sugget command.
Implementations§
Source§impl FtSugGetOptions
impl FtSugGetOptions
Sourcepub fn fuzzy(self) -> Self
pub fn fuzzy(self) -> Self
performs a fuzzy prefix search, including prefixes at Levenshtein distance of 1 from the prefix sent.
Sourcepub fn withscores(self) -> Self
pub fn withscores(self) -> Self
returns the score of each suggestion.
This can be used to merge results from multiple instances.
Sourcepub fn withpayload(self) -> Self
pub fn withpayload(self) -> Self
returns optional payloads saved along with the suggestions.
If no payload is present for an entry, it returns a null reply.
Trait Implementations§
Source§impl Args for FtSugGetOptions
impl Args for FtSugGetOptions
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Source§impl Default for FtSugGetOptions
impl Default for FtSugGetOptions
Source§fn default() -> FtSugGetOptions
fn default() -> FtSugGetOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FtSugGetOptions
impl RefUnwindSafe for FtSugGetOptions
impl Send for FtSugGetOptions
impl Sync for FtSugGetOptions
impl Unpin for FtSugGetOptions
impl UnwindSafe for FtSugGetOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more