#[non_exhaustive]pub struct RegexpQuery {
pub boost: Option<f32>,
pub field: Option<String>,
pub regexp: String,
}Expand description
A regular expression query that matches terms against a regular expression.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.boost: Option<f32>The boost value for this query.
field: Option<String>The field to query.
regexp: StringThe regular expression to match.
Implementations§
Trait Implementations§
Source§impl Clone for RegexpQuery
impl Clone for RegexpQuery
Source§fn clone(&self) -> RegexpQuery
fn clone(&self) -> RegexpQuery
Returns a duplicate 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 moreSource§impl Debug for RegexpQuery
impl Debug for RegexpQuery
Source§impl From<RegexpQuery> for RegexpQuery
impl From<RegexpQuery> for RegexpQuery
Source§fn from(query: RegexpQuery) -> Self
fn from(query: RegexpQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RegexpQuery
impl PartialEq for RegexpQuery
impl StructuralPartialEq for RegexpQuery
Auto Trait Implementations§
impl Freeze for RegexpQuery
impl RefUnwindSafe for RegexpQuery
impl Send for RegexpQuery
impl Sync for RegexpQuery
impl Unpin for RegexpQuery
impl UnsafeUnpin for RegexpQuery
impl UnwindSafe for RegexpQuery
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