pub struct QueryOperand(pub String);Expand description
Tuple struct representing a query expression.
This is responsible for wrapping the search expression. Implement addition and multiplication of the expressions(corresponding OR and AND searches) by implementing Add and Mul traits in this struct. The search expression is taken in the form of a String, so any search expression can ben included, but it cannot be guaranteed that the syntax is correct.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Add<QueryExpression> for QueryOperand
Implement the addition of QueryOperand and QueryExpression.
impl Add<QueryExpression> for QueryOperand
Implement the addition of QueryOperand and QueryExpression.
Source§type Output = QueryExpression
type Output = QueryExpression
+ operator.Source§fn add(self, rhs: QueryExpression) -> QueryExpression
fn add(self, rhs: QueryExpression) -> QueryExpression
+ operation. Read moreSource§impl Add<QueryOperand> for QueryExpression
Implement the addition of QueryExpression and QueryOperand.
impl Add<QueryOperand> for QueryExpression
Implement the addition of QueryExpression and QueryOperand.
Source§type Output = QueryExpression
type Output = QueryExpression
+ operator.Source§fn add(self, rhs: QueryOperand) -> QueryExpression
fn add(self, rhs: QueryOperand) -> QueryExpression
+ operation. Read moreSource§impl Add for QueryOperand
Implement the addition between QueryOperand.
impl Add for QueryOperand
Implement the addition between QueryOperand.
Source§type Output = QueryExpression
type Output = QueryExpression
+ operator.Source§fn add(self, rhs: QueryOperand) -> QueryExpression
fn add(self, rhs: QueryOperand) -> QueryExpression
+ operation. Read moreSource§impl Aggregation<QueryOperand> for QueryExpression
Implementation of the method that generates QueryExpression from a vector of QueryOperand.
impl Aggregation<QueryOperand> for QueryExpression
Implementation of the method that generates QueryExpression from a vector of QueryOperand.
fn sum(operands: Vec<QueryOperand>) -> QueryExpression
fn prod(operands: Vec<QueryOperand>) -> QueryExpression
Source§impl Display for QueryOperand
impl Display for QueryOperand
Source§impl From<&str> for QueryOperand
impl From<&str> for QueryOperand
Source§impl From<BoostQueryOperand> for QueryOperand
impl From<BoostQueryOperand> for QueryOperand
Source§fn from(op: BoostQueryOperand) -> QueryOperand
fn from(op: BoostQueryOperand) -> QueryOperand
Source§impl From<ConstantQueryOperand> for QueryOperand
impl From<ConstantQueryOperand> for QueryOperand
Source§fn from(op: ConstantQueryOperand) -> QueryOperand
fn from(op: ConstantQueryOperand) -> QueryOperand
Source§impl From<FuzzyQueryOperand> for QueryOperand
impl From<FuzzyQueryOperand> for QueryOperand
Source§fn from(op: FuzzyQueryOperand) -> QueryOperand
fn from(op: FuzzyQueryOperand) -> QueryOperand
Source§impl From<PhraseQueryOperand> for QueryOperand
impl From<PhraseQueryOperand> for QueryOperand
Source§fn from(op: PhraseQueryOperand) -> QueryOperand
fn from(op: PhraseQueryOperand) -> QueryOperand
Source§impl From<ProximityQueryOperand> for QueryOperand
impl From<ProximityQueryOperand> for QueryOperand
Source§fn from(op: ProximityQueryOperand) -> QueryOperand
fn from(op: ProximityQueryOperand) -> QueryOperand
Source§impl From<RangeQueryOperand> for QueryOperand
impl From<RangeQueryOperand> for QueryOperand
Source§fn from(op: RangeQueryOperand) -> QueryOperand
fn from(op: RangeQueryOperand) -> QueryOperand
Source§impl From<StandardQueryOperand> for QueryOperand
impl From<StandardQueryOperand> for QueryOperand
Source§fn from(op: StandardQueryOperand) -> QueryOperand
fn from(op: StandardQueryOperand) -> QueryOperand
Source§impl Mul<QueryExpression> for QueryOperand
Implement the multiplication of QueryOperand and QueryExpression.
impl Mul<QueryExpression> for QueryOperand
Implement the multiplication of QueryOperand and QueryExpression.
Source§type Output = QueryExpression
type Output = QueryExpression
* operator.Source§fn mul(self, rhs: QueryExpression) -> QueryExpression
fn mul(self, rhs: QueryExpression) -> QueryExpression
* operation. Read moreSource§impl Mul<QueryOperand> for QueryExpression
Implement the multiplication of QueryExpression and QueryOperand.
impl Mul<QueryOperand> for QueryExpression
Implement the multiplication of QueryExpression and QueryOperand.
Source§type Output = QueryExpression
type Output = QueryExpression
* operator.Source§fn mul(self, rhs: QueryOperand) -> QueryExpression
fn mul(self, rhs: QueryOperand) -> QueryExpression
* operation. Read moreSource§impl Mul for QueryOperand
Implement the multiplication between QueryOperand.
impl Mul for QueryOperand
Implement the multiplication between QueryOperand.
Source§type Output = QueryExpression
type Output = QueryExpression
* operator.Source§fn mul(self, rhs: QueryOperand) -> QueryExpression
fn mul(self, rhs: QueryOperand) -> QueryExpression
* operation. Read moreimpl SolrQueryExpression for QueryOperand
Auto Trait Implementations§
impl Freeze for QueryOperand
impl RefUnwindSafe for QueryOperand
impl Send for QueryOperand
impl Sync for QueryOperand
impl Unpin for QueryOperand
impl UnwindSafe for QueryOperand
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more