pub struct Prefix { /* private fields */ }
Implementations§
Source§impl Prefix
impl Prefix
pub fn new() -> Self
pub fn field<T: Into<String> + Serialize>(self, field: T) -> Self
pub fn value<T: Into<String> + Serialize>(self, value: T) -> Self
pub fn boost<T: Into<f64> + Serialize>(self, boost: T) -> Self
pub fn case_insensitive<T: Into<bool> + Serialize>( self, case_insensitive: T, ) -> Self
pub fn rewrite<T: Into<Rewrite> + Serialize>(self, rewrite: T) -> Self
Trait Implementations§
Source§impl From<Prefix> for QueryField
impl From<Prefix> for QueryField
Auto Trait Implementations§
impl Freeze for Prefix
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnwindSafe for Prefix
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