pub struct FtsQueryParams { /* private fields */ }Expand description
FTS-specific query parameters controlling the default boolean operator.
Implementations§
Source§impl FtsQueryParams
impl FtsQueryParams
Sourcepub fn new(default_operator: Option<&str>) -> Result<Self>
pub fn new(default_operator: Option<&str>) -> Result<Self>
Creates new FTS query parameters.
default_operator sets the boolean operator for adjacent bare terms
(“OR” or “AND”, case-insensitive). Pass None to use the library default.
Sourcepub fn set_default_operator(&mut self, op: &str) -> Result<()>
pub fn set_default_operator(&mut self, op: &str) -> Result<()>
Sets the default boolean operator.
Sourcepub fn default_operator(&self) -> Option<String>
pub fn default_operator(&self) -> Option<String>
Returns the default boolean operator.
Trait Implementations§
Source§impl Drop for FtsQueryParams
impl Drop for FtsQueryParams
Auto Trait Implementations§
impl !Send for FtsQueryParams
impl !Sync for FtsQueryParams
impl Freeze for FtsQueryParams
impl RefUnwindSafe for FtsQueryParams
impl Unpin for FtsQueryParams
impl UnsafeUnpin for FtsQueryParams
impl UnwindSafe for FtsQueryParams
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