#[non_exhaustive]pub struct QueryTerm {
pub value: String,
pub full_match: bool,
/* private fields */
}Expand description
Query terms that we want to match on.
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.value: StringThe value of the term to match on. Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. For example, “a b c” is 3 terms and allowed, but “ a b c d“ is 4 terms and not allowed for a partial match.
full_match: boolWhether this is supposed to be a full or partial match.
Implementations§
Trait Implementations§
impl StructuralPartialEq for QueryTerm
Auto Trait Implementations§
impl Freeze for QueryTerm
impl RefUnwindSafe for QueryTerm
impl Send for QueryTerm
impl Sync for QueryTerm
impl Unpin for QueryTerm
impl UnwindSafe for QueryTerm
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