Enum Query

Source
pub enum Query {
Show 61 variants Bool(BoolQuery), Prefix(PrefixQuery), Regexp(RegexpQuery), Wildcard(WildcardQuery), TermsSet(TermsSetQuery), Term(TermQuery), Terms(TermsQuery), TermsLookup(TermsLookupQuery), Exists(ExistsQuery), Range(RangeQuery), Ids(IdsQuery), ConstantScore(ConstantScoreQuery), DistanceFeatureDate(DistanceFeatureQuery<DateTime<Utc>>), DistanceFeatureGeo(DistanceFeatureQuery<GeoLocation>), Match(MatchQuery), MatchBoolPrefix(MatchBoolPrefixQuery), MatchPhrasePrefix(MatchPhrasePrefixQuery), MatchAll(MatchAllQuery), MatchNone(MatchNoneQuery), MatchPhrase(MatchPhraseQuery), MultiMatch(MultiMatchQuery), Nested(NestedQuery), Boosting(BoostingQuery), DisMax(DisMaxQuery), Pinned(PinnedQuery), Percolate(PercolateQuery), PercolateLookup(PercolateLookupQuery), FunctionScore(FunctionScoreQuery), RankFeature(RankFeatureQuery), RankFeatureSaturation(RankFeatureSaturationQuery), RankFeatureLogarithm(RankFeatureLogarithmQuery), RankFeatureSigmoid(RankFeatureSigmoidQuery), RankFeatureLinear(RankFeatureLinearQuery), MoreLikeThis(MoreLikeThisQuery), Fuzzy(FuzzyQuery), GeoDistance(GeoDistanceQuery), GeoBoundingBox(GeoBoundingBoxQuery), GeoShapeLookup(GeoShapeLookupQuery), GeoShape(GeoShapeQuery), ShapeLookup(ShapeLookupQuery), Shape(ShapeQuery), Json(JsonQuery), Wrapper(WrapperQuery), Script(ScriptQuery), ScriptScore(ScriptScoreQuery), ParentId(ParentIdQuery), HasParent(HasParentQuery), HasChild(HasChildQuery), SimpleQueryString(SimpleQueryStringQuery), QueryString(QueryStringQuery), CombinedFields(CombinedFieldsQuery), SpanContaining(SpanContainingQuery), SpanFieldMasking(SpanFieldMaskingQuery), SpanFirst(SpanFirstQuery), SpanMulti(SpanMultiQuery), SpanNear(SpanNearQuery), SpanNot(SpanNotQuery), SpanOr(SpanOrQuery), SpanTerm(SpanTermQuery), SpanWithin(SpanWithinQuery), Knn(KnnQuery),
}
Expand description

A container enum for supported Elasticsearch query types

Variants§

§

Bool(BoolQuery)

§

Prefix(PrefixQuery)

§

Regexp(RegexpQuery)

§

Wildcard(WildcardQuery)

§

TermsSet(TermsSetQuery)

§

Term(TermQuery)

§

Terms(TermsQuery)

§

TermsLookup(TermsLookupQuery)

§

Exists(ExistsQuery)

§

Range(RangeQuery)

§

Ids(IdsQuery)

§

ConstantScore(ConstantScoreQuery)

§

DistanceFeatureDate(DistanceFeatureQuery<DateTime<Utc>>)

§

DistanceFeatureGeo(DistanceFeatureQuery<GeoLocation>)

§

Match(MatchQuery)

§

MatchBoolPrefix(MatchBoolPrefixQuery)

§

MatchPhrasePrefix(MatchPhrasePrefixQuery)

§

MatchAll(MatchAllQuery)

§

MatchNone(MatchNoneQuery)

§

MatchPhrase(MatchPhraseQuery)

§

MultiMatch(MultiMatchQuery)

§

Nested(NestedQuery)

§

Boosting(BoostingQuery)

§

DisMax(DisMaxQuery)

§

Pinned(PinnedQuery)

§

Percolate(PercolateQuery)

§

PercolateLookup(PercolateLookupQuery)

§

FunctionScore(FunctionScoreQuery)

§

RankFeature(RankFeatureQuery)

§

RankFeatureSaturation(RankFeatureSaturationQuery)

§

RankFeatureLogarithm(RankFeatureLogarithmQuery)

§

RankFeatureSigmoid(RankFeatureSigmoidQuery)

§

RankFeatureLinear(RankFeatureLinearQuery)

§

MoreLikeThis(MoreLikeThisQuery)

§

Fuzzy(FuzzyQuery)

§

GeoDistance(GeoDistanceQuery)

§

GeoBoundingBox(GeoBoundingBoxQuery)

§

GeoShapeLookup(GeoShapeLookupQuery)

§

GeoShape(GeoShapeQuery)

§

ShapeLookup(ShapeLookupQuery)

§

Shape(ShapeQuery)

§

Json(JsonQuery)

§

Wrapper(WrapperQuery)

§

Script(ScriptQuery)

§

ScriptScore(ScriptScoreQuery)

§

ParentId(ParentIdQuery)

§

HasParent(HasParentQuery)

§

HasChild(HasChildQuery)

§

SimpleQueryString(SimpleQueryStringQuery)

§

QueryString(QueryStringQuery)

§

CombinedFields(CombinedFieldsQuery)

§

SpanContaining(SpanContainingQuery)

§

SpanFieldMasking(SpanFieldMaskingQuery)

§

SpanFirst(SpanFirstQuery)

§

SpanMulti(SpanMultiQuery)

§

SpanNear(SpanNearQuery)

§

SpanNot(SpanNotQuery)

§

SpanOr(SpanOrQuery)

§

SpanTerm(SpanTermQuery)

§

SpanWithin(SpanWithinQuery)

§

Knn(KnnQuery)

Implementations§

Source§

impl Query

Source

pub fn bool() -> BoolQuery

Creates an instance of BoolQuery

Source§

impl Query

Source

pub fn boosting<Q, B>( positive: Q, negative: Q, negative_boost: B, ) -> BoostingQuery
where Q: Into<Query>, B: Into<NegativeBoost>,

Creates an instance of BoostingQuery

  • positive - Query you wish to run. Any returned documents must match this query.
  • negative - Query used to decrease the relevance score of matching documents.
    If a returned document matches the positive query and this query, the boosting query calculates the final relevance score for the document as follows:
    1. Take the original relevance score from the positive query.
    2. Multiply the score by the negative_boost value.
  • negative_boost - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query.
Source§

impl Query

Source

pub fn constant_score<T>(filter: T) -> ConstantScoreQuery
where T: Into<Query>,

Creates an instance of ConstantScoreQuery

  • filter - Filter query you wish to run. Any returned documents must match this query.
    Filter queries do not calculate relevance scores. To speed up performance, Elasticsearch automatically caches frequently used filter queries.
Source§

impl Query

Source

pub fn dis_max() -> DisMaxQuery

Creates an instance of DisMaxQuery

Source§

impl Query

Source§

impl Query

Source

pub fn json(query: Value) -> JsonQuery

Creates an instance of JsonQuery

  • query - raw JSON query
Source§

impl Query

Source

pub fn combined_fields<F, S>(fields: F, query: S) -> CombinedFieldsQuery
where F: IntoIterator, F::Item: ToString, S: Into<Text>,

Creates an instance of CombinedFieldsQuery

  • fields - List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer.
  • query - Text to search for in the provided <fields>. The combined_fields query analyzes the provided text before performing a search.
Source§

impl Query

Source

pub fn match_bool_prefix<T, U>(field: T, query: U) -> MatchBoolPrefixQuery
where T: ToString, U: Into<Text>,

Creates an instance of MatchBoolPrefixQuery

  • field - Field you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>
Source§

impl Query

Source

pub fn match_phrase_prefix<T, U>(field: T, query: U) -> MatchPhrasePrefixQuery
where T: ToString, U: Into<Text>,

Creates an instance of MatchPhrasePrefixQuery

  • field - Field you wish to search.
  • query - Text you wish to find in the provided <field>.
    The match_phrase_prefix query analyzes any provided text into tokens before performing a search. The last term of this text is treated as a prefix, matching any words that begin with that term.
Source§

impl Query

Source

pub fn match_phrase<T, U>(field: T, query: U) -> MatchPhraseQuery
where T: ToString, U: Into<Text>,

Creates an instance of MatchPhraseQuery

  • field - Field you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>.
    The match_phrase query analyzes any provided text before performing a search. This means the match_phrase query can search text fields for analyzed tokens rather than an exact term.
Source§

impl Query

Source

pub fn match<T, U>(field: T, query: U) -> MatchQuery
where T: ToString, U: Into<Text>,

Creates an instance of MatchQuery

  • field - Field you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>.
    The match query analyzes any provided text before performing a search. This means the match query can search text fields for analyzed tokens rather than an exact term.
Source§

impl Query

Source

pub fn multi_match<F, S>(fields: F, query: S) -> MultiMatchQuery
where F: IntoIterator, F::Item: ToString, S: Into<Text>,

Creates an instance of MultiMatchQuery

  • fields - Fields you wish to search.
  • query - Text, number, boolean value or date you wish to find in the provided <field>. The match query analyzes any provided text before performing a search. This means the match query can search text fields for analyzed tokens rather than an exact term.
Source§

impl Query

Source

pub fn query_string<S>(query: S) -> QueryStringQuery
where S: Into<Text>,

Creates an instance of QueryStringQuery

Source§

impl Query

Source

pub fn simple_query_string<S>(query: S) -> SimpleQueryStringQuery
where S: Into<Text>,

Creates an instance of SimpleQueryStringQuery

Source§

impl Query

Source

pub fn geo_bounding_box<T, U>(field: T, bounding_box: U) -> GeoBoundingBoxQuery

Creates an instance of GeoBoundingBoxQuery

  • field - Field you wish to search.
  • bounding_box - A series of vertex coordinates of a geo bounding box
Source§

impl Query

Source

pub fn geo_distance<T, U, V>( field: T, origin: U, distance: V, ) -> GeoDistanceQuery
where T: ToString, U: Into<GeoLocation>, V: Into<Distance>,

Creates an instance of GeoDistanceQuery

  • field - Field you wish to search
  • origin - GeoPoint to measure distance to
  • distance - Distance threshold
Source§

impl Query

Source

pub fn geo_shape_lookup<S, T>(field: S, id: T) -> GeoShapeLookupQuery
where S: ToString, T: ToString,

Creates an instance of GeoShapeLookupQuery

  • field - Field you wish to search
  • id - The ID of the document that containing the pre-indexed shape
Source§

impl Query

Source

pub fn geo_shape<S, T>(field: S, shape: T) -> GeoShapeQuery
where S: ToString, T: Into<GeoShape>,

Creates an instance of GeoShapeQuery

  • field - Field you wish to search
  • shape - Shape you with to search
Source§

impl Query

Source

pub fn has_child<T, U>(type: T, query: U) -> HasChildQuery
where T: ToString, U: Into<Query>,

Creates an instance of HasChildQuery

  • type - Name of the child relationship mapped for the join field.
  • query - Query you wish to run on child documents of the type field. If a child document matches the search, the query returns the parent document.
Source§

impl Query

Source

pub fn has_parent<T, U>(parent_type: T, query: U) -> HasParentQuery
where T: ToString, U: Into<Query>,

Creates an instance of HasParentQuery

  • parent-type - Name of the parent relationship mapped for the join field.
  • query - Query you wish to run on parent documents of the parent_type field. If a parent document matches the search, the query returns its child documents.
Source§

impl Query

Source

pub fn nested<T, U>(path: T, query: U) -> NestedQuery
where T: ToString, U: Into<Query>,

Creates an instance of NestedQuery

  • path - Path to the nested object you wish to search.
  • query - Query you wish to run on nested objects in the path. If an object matches the search, the nested query returns the root parent document.
    You can search nested fields using dot notation that includes the complete path, such as obj1.name.
    Multi-level nesting is automatically supported, and detected, resulting in an inner nested query to automatically match the relevant nesting level, rather than root, if it exists within another nested query.
    Multi-level nested queries are also supported.
Source§

impl Query

Source

pub fn parent_id<T, U>(type: T, id: U) -> ParentIdQuery
where T: ToString, U: ToString,

Creates an instance of ParentIdQuery

  • type - Name of the child relationship mapped for the join field
  • id - ID of the parent document. The query will return child documents of this parent document.
Source§

impl Query

Source

pub fn shape_lookup<S, T>(field: S, id: T) -> ShapeLookupQuery
where S: ToString, T: ToString,

Creates an instance of ShapeLookupQuery

  • field - Field you wish to search
  • id - The ID of the document that containing the pre-indexed shape
Source§

impl Query

Source

pub fn shape<S, T>(field: S, shape: T) -> ShapeQuery
where S: ToString, T: Into<Shape>,

Creates an instance of ShapeQuery

  • field - Field you wish to search
  • shape - Shape you with to search
Source§

impl Query

Source

pub fn span_containing<T, U>(little: T, big: U) -> SpanContainingQuery
where T: Into<SpanQuery>, U: Into<SpanQuery>,

Creates an instance of SpanContainingQuery

Source§

impl Query

Source

pub fn span_field_masking<Q, F>(query: Q, field: F) -> SpanFieldMaskingQuery
where Q: Into<SpanQuery>, F: ToString,

Creates an instance of SpanFieldMaskingQuery

Source§

impl Query

Source

pub fn span_first<T>(match: T, end: u32) -> SpanFirstQuery
where T: Into<SpanQuery>,

Creates an instance of SpanFirstQuery

Source§

impl Query

Source

pub fn span_multi<Q>(match: Q) -> SpanMultiQuery
where Q: Into<MultiTermQuery>,

Creates an instance of SpanMultiQuery

Source§

impl Query

Source

pub fn span_near<T>(clauses: T) -> SpanNearQuery

Creates an instance of SpanNearQuery

Source§

impl Query

Source

pub fn span_not<T, U>(exclude: T, include: U) -> SpanNotQuery

Creates an instance of SpanNotQuery

Source§

impl Query

Source

pub fn span_or<T>(clauses: T) -> SpanOrQuery

Creates an instance of SpanOrQuery

Source§

impl Query

Source

pub fn span_term<T, U>(field: T, value: U) -> SpanTermQuery
where T: ToString, U: Serialize,

Creates an instance of SpanTermQuery

  • field - Field you wish to search.
  • value - Term you wish to find in the provided field. To return a document, the term must exactly match the field value, including whitespace and capitalization.
Source§

impl Query

Source

pub fn span_within<T, U>(little: T, big: U) -> SpanWithinQuery
where T: Into<SpanQuery>, U: Into<SpanQuery>,

Creates an instance of SpanWithinQuery

Source§

impl Query

Source

pub fn distance_feature<T, O>( field: T, origin: O, pivot: <O as Origin>::Pivot, ) -> DistanceFeatureQuery<O>
where T: ToString, O: Origin,

Creates an instance of DistanceFeatureQuery

  • field - Name of the field used to calculate distances. This field must meet the following criteria:
  • origin - Date or point of origin used to calculate distances.
    If the field value is a date or date_nanos field, the origin value must be a date. Date Math, such as now-1h, is supported.
    If the field value is a geo_point field, the origin value must be a geopoint.
  • pivot - Distance from the origin at which relevance scores receive half of the boost value.
    If the field value is a date or date_nanos field, the pivot value must be a time unit , such as 1h or 10d.
    If the field value is a geo_point field, the pivot value must be a distance unit , such as 1km or 12m.
Source§

impl Query

Source

pub fn knn<T>(field: T, query_vector: Vec<f32>) -> KnnQuery
where T: ToString,

Creates an instance of KnnQuery

  • field - The name of the vector field to search against. Must be a dense_vector field with indexing enabled.
  • query_vector - Query vector. Must have the same number of dimensions as the vector field you are searching against.
Source§

impl Query

Source

pub fn more_like_this<I>(like: I) -> MoreLikeThisQuery
where I: IntoIterator, I::Item: Into<Like>,

Creates an instance of MoreLikeThisQuery

  • like - free form text and/or a single or multiple documents.
Source§

impl Query

Source

pub fn percolate_lookup<S, T, U>( field: S, index: T, id: U, ) -> PercolateLookupQuery
where S: ToString, T: ToString, U: ToString,

Creates an instance of PercolateLookupQuery

  • field - The field of type percolator that holds the indexed queries
  • index - The index the document resides in
  • id - The id of the document to fetch
Source§

impl Query

Source

pub fn percolate<S, T>(field: S, source: T) -> PercolateQuery
where S: ToString, T: Serialize,

Creates an instance of PercolateQuery

  • field - The field of type percolator that holds the indexed queries
  • source - Source to percolate
Source§

impl Query

Source

pub fn pinned<Q>(values: PinnedQueryValues, organic: Q) -> PinnedQuery
where Q: Into<Query>,

Creates an instance of PinnedQuery

Source§

impl Query

Source

pub fn rank_feature<T>(field: T) -> RankFeatureQuery
where T: ToString,

Creates an instance of RankFeatureQuery

  • field - rank_feature or rank_features field used to boost relevance scores
Source§

impl Query

Source

pub fn script(script: Script) -> ScriptQuery

Creates an instance of ScriptQuery

  • script - Contains a script to run as a query. This script must return a boolean value, true or false
Source§

impl Query

Source

pub fn script_score<Q>(query: Q, script: Script) -> ScriptScoreQuery
where Q: Into<Query>,

Creates an instance of ScriptScoreQuery

  • query - Query used to return documents
  • script - Script used to compute the score of documents returned by the query
Source§

impl Query

Source

pub fn wrapper<S>(query: S) -> WrapperQuery
where S: ToString,

Creates an instance of WrapperQuery

Source§

impl Query

Source

pub fn exists<T>(field: T) -> ExistsQuery
where T: ToString,

Creates an instance of ExistsQuery

  • field - Name of the field you wish to search. While a field is deemed non-existent if the JSON value is null or [], these values will indicate the field does exist:
    • Empty strings, such as "" or "-"
    • Arrays containing null and another value, such as [null, "foo"]
    • A custom null-value, defined in field mapping
Source§

impl Query

Source

pub fn fuzzy<T, U>(field: T, value: U) -> FuzzyQuery
where T: ToString, U: Serialize,

Creates an instance of FuzzyQuery

  • field - Field you wish to search.
  • value - Fuzzy you wish to find in the provided field.
Source§

impl Query

Source

pub fn ids<I>(values: I) -> IdsQuery
where I: IntoIterator, I::Item: ToString,

Creates an instance of IdsQuery

Source§

impl Query

Source

pub fn prefix<T, U>(field: T, value: U) -> PrefixQuery
where T: ToString, U: Serialize,

Creates an instance of PrefixQuery

  • field - Field you wish to search.
  • value - Term you wish to find in the provided field. To return a document, the term must exactly match the field value, including whitespace and capitalization.
Source§

impl Query

Source

pub fn range<T>(field: T) -> RangeQuery
where T: ToString,

Creates an instance of RangeQuery

  • field - Field you wish to search.
Source§

impl Query

Source

pub fn regexp<S>(field: S, value: S) -> RegexpQuery
where S: ToString,

Creates an instance of RegexpQuery

  • field - Field you wish to search.
  • value - Regular expression for terms you wish to find in the provided field. For a list of supported operators, see Regular expression syntax.

By default, regular expressions are limited to 1,000 characters. You can change this limit using the index.max_regex_length setting.

Source§

impl Query

Source

pub fn term<T, U>(field: T, value: U) -> TermQuery
where T: ToString, U: Serialize,

Creates an instance of TermQuery

  • field - Field you wish to search.
  • value - Term you wish to find in the provided field. To return a document, the term must exactly match the field value, including whitespace and capitalization.
Source§

impl Query

Source

pub fn terms_lookup<S, T, U, V>( field: S, index: T, id: U, path: V, ) -> TermsLookupQuery
where S: ToString, T: ToString, U: ToString, V: ToString,

Creates an instance of TermsLookupQuery

  • field - Field you wish to search.
  • index - Name of the index from which to fetch field values.
  • id - ID of the document from which to fetch field values.
  • path - Name of the field from which to fetch field values. Elasticsearch uses these values as search terms for the query. If the field values include an array of nested inner objects, you can access those objects using dot notation syntax.
Source§

impl Query

Source

pub fn terms<S, I>(field: S, terms: I) -> TermsQuery
where S: ToString, I: Into<Terms>,

Creates an instance of TermsQuery

  • field - Field you wish to search.
  • values - An array of terms you wish to find in the provided field. To return a document, one or more terms must exactly match a field value, including whitespace and capitalization.
    By default, Elasticsearch limits the terms query to a maximum of 65,536 terms. You can change this limit using the index.max_terms_count setting.

To use the field values of an existing document as search terms, use the terms lookup parameters.

Source§

impl Query

Source

pub fn terms_set<S, T, U>( field: S, terms: T, minimum_should_match: U, ) -> TermsSetQuery

Creates an instance of TermsSetQuery

  • field - Field you wish to search.
  • value - TermsSet you wish to find in the provided field. To return a document, the terms_set must exactly match the field value, including whitespace and capitalization.
Source§

impl Query

Source

pub fn wildcard<T, U>(field: T, value: U) -> WildcardQuery
where T: ToString, U: Serialize,

Creates an instance of WildcardQuery

  • field - Field you wish to search.
  • value - Wildcard you wish to find in the provided field. To return a document, the wildcard must exactly match the field value, including whitespace and capitalization.
Source§

impl Query

Source

pub fn match_all() -> MatchAllQuery

Creates an instance of MatchAllQuery

Source§

impl Query

Source

pub fn match_none() -> MatchNoneQuery

Creates an instance of MatchNoneQuery

Trait Implementations§

Source§

impl Clone for Query

Source§

fn clone(&self) -> Query

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Query

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<BoolQuery> for Query

Source§

fn from(q: BoolQuery) -> Self

Converts to this type from the input type.
Source§

impl From<BoostingQuery> for Query

Source§

fn from(q: BoostingQuery) -> Self

Converts to this type from the input type.
Source§

impl From<CombinedFieldsQuery> for Query

Source§

fn from(q: CombinedFieldsQuery) -> Self

Converts to this type from the input type.
Source§

impl From<ConstantScoreQuery> for Query

Source§

fn from(q: ConstantScoreQuery) -> Self

Converts to this type from the input type.
Source§

impl From<DisMaxQuery> for Query

Source§

fn from(q: DisMaxQuery) -> Self

Converts to this type from the input type.
Source§

impl From<DistanceFeatureQuery<DateTime<Utc>>> for Query

Source§

fn from(q: DistanceFeatureQuery<DateTime<Utc>>) -> Self

Converts to this type from the input type.
Source§

impl From<DistanceFeatureQuery<GeoLocation>> for Query

Source§

fn from(q: DistanceFeatureQuery<GeoLocation>) -> Self

Converts to this type from the input type.
Source§

impl From<ExistsQuery> for Query

Source§

fn from(q: ExistsQuery) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionScoreQuery> for Query

Source§

fn from(q: FunctionScoreQuery) -> Self

Converts to this type from the input type.
Source§

impl From<FuzzyQuery> for Query

Source§

fn from(q: FuzzyQuery) -> Self

Converts to this type from the input type.
Source§

impl From<GeoBoundingBoxQuery> for Query

Source§

fn from(q: GeoBoundingBoxQuery) -> Self

Converts to this type from the input type.
Source§

impl From<GeoDistanceQuery> for Query

Source§

fn from(q: GeoDistanceQuery) -> Self

Converts to this type from the input type.
Source§

impl From<GeoShapeLookupQuery> for Query

Source§

fn from(q: GeoShapeLookupQuery) -> Self

Converts to this type from the input type.
Source§

impl From<GeoShapeQuery> for Query

Source§

fn from(q: GeoShapeQuery) -> Self

Converts to this type from the input type.
Source§

impl From<HasChildQuery> for Query

Source§

fn from(q: HasChildQuery) -> Self

Converts to this type from the input type.
Source§

impl From<HasParentQuery> for Query

Source§

fn from(q: HasParentQuery) -> Self

Converts to this type from the input type.
Source§

impl From<IdsQuery> for Query

Source§

fn from(q: IdsQuery) -> Self

Converts to this type from the input type.
Source§

impl From<JsonQuery> for Query

Source§

fn from(q: JsonQuery) -> Self

Converts to this type from the input type.
Source§

impl From<KnnQuery> for Query

Source§

fn from(q: KnnQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MatchAllQuery> for Query

Source§

fn from(q: MatchAllQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MatchBoolPrefixQuery> for Query

Source§

fn from(q: MatchBoolPrefixQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MatchNoneQuery> for Query

Source§

fn from(q: MatchNoneQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MatchPhrasePrefixQuery> for Query

Source§

fn from(q: MatchPhrasePrefixQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MatchPhraseQuery> for Query

Source§

fn from(q: MatchPhraseQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MatchQuery> for Query

Source§

fn from(q: MatchQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MoreLikeThisQuery> for Query

Source§

fn from(q: MoreLikeThisQuery) -> Self

Converts to this type from the input type.
Source§

impl From<MultiMatchQuery> for Query

Source§

fn from(q: MultiMatchQuery) -> Self

Converts to this type from the input type.
Source§

impl From<NestedQuery> for Query

Source§

fn from(q: NestedQuery) -> Self

Converts to this type from the input type.
Source§

impl From<ParentIdQuery> for Query

Source§

fn from(q: ParentIdQuery) -> Self

Converts to this type from the input type.
Source§

impl From<PercolateLookupQuery> for Query

Source§

fn from(q: PercolateLookupQuery) -> Self

Converts to this type from the input type.
Source§

impl From<PercolateQuery> for Query

Source§

fn from(q: PercolateQuery) -> Self

Converts to this type from the input type.
Source§

impl From<PinnedQuery> for Query

Source§

fn from(q: PinnedQuery) -> Self

Converts to this type from the input type.
Source§

impl From<PrefixQuery> for Query

Source§

fn from(q: PrefixQuery) -> Self

Converts to this type from the input type.
Source§

impl From<QueryStringQuery> for Query

Source§

fn from(q: QueryStringQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RangeQuery> for Query

Source§

fn from(q: RangeQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RankFeatureLinearQuery> for Query

Source§

fn from(q: RankFeatureLinearQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RankFeatureLogarithmQuery> for Query

Source§

fn from(q: RankFeatureLogarithmQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RankFeatureQuery> for Query

Source§

fn from(q: RankFeatureQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RankFeatureSaturationQuery> for Query

Source§

fn from(q: RankFeatureSaturationQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RankFeatureSigmoidQuery> for Query

Source§

fn from(q: RankFeatureSigmoidQuery) -> Self

Converts to this type from the input type.
Source§

impl From<RegexpQuery> for Query

Source§

fn from(q: RegexpQuery) -> Self

Converts to this type from the input type.
Source§

impl From<ScriptQuery> for Query

Source§

fn from(q: ScriptQuery) -> Self

Converts to this type from the input type.
Source§

impl From<ScriptScoreQuery> for Query

Source§

fn from(q: ScriptScoreQuery) -> Self

Converts to this type from the input type.
Source§

impl From<ShapeLookupQuery> for Query

Source§

fn from(q: ShapeLookupQuery) -> Self

Converts to this type from the input type.
Source§

impl From<ShapeQuery> for Query

Source§

fn from(q: ShapeQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleQueryStringQuery> for Query

Source§

fn from(q: SimpleQueryStringQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanContainingQuery> for Query

Source§

fn from(q: SpanContainingQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanFieldMaskingQuery> for Query

Source§

fn from(q: SpanFieldMaskingQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanFirstQuery> for Query

Source§

fn from(q: SpanFirstQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanMultiQuery> for Query

Source§

fn from(q: SpanMultiQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanNearQuery> for Query

Source§

fn from(q: SpanNearQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanNotQuery> for Query

Source§

fn from(q: SpanNotQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanOrQuery> for Query

Source§

fn from(q: SpanOrQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanTermQuery> for Query

Source§

fn from(q: SpanTermQuery) -> Self

Converts to this type from the input type.
Source§

impl From<SpanWithinQuery> for Query

Source§

fn from(q: SpanWithinQuery) -> Self

Converts to this type from the input type.
Source§

impl From<TermQuery> for Query

Source§

fn from(q: TermQuery) -> Self

Converts to this type from the input type.
Source§

impl From<TermsLookupQuery> for Query

Source§

fn from(q: TermsLookupQuery) -> Self

Converts to this type from the input type.
Source§

impl From<TermsQuery> for Query

Source§

fn from(q: TermsQuery) -> Self

Converts to this type from the input type.
Source§

impl From<TermsSetQuery> for Query

Source§

fn from(q: TermsSetQuery) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Query

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl From<WildcardQuery> for Query

Source§

fn from(q: WildcardQuery) -> Self

Converts to this type from the input type.
Source§

impl From<WrapperQuery> for Query

Source§

fn from(q: WrapperQuery) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for Query

Source§

type Item = Query

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<<Query as IntoIterator>::Item>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl PartialEq<BoolQuery> for Query

Source§

fn eq(&self, other: &BoolQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<BoostingQuery> for Query

Source§

fn eq(&self, other: &BoostingQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<CombinedFieldsQuery> for Query

Source§

fn eq(&self, other: &CombinedFieldsQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ConstantScoreQuery> for Query

Source§

fn eq(&self, other: &ConstantScoreQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<DisMaxQuery> for Query

Source§

fn eq(&self, other: &DisMaxQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<DistanceFeatureQuery<DateTime<Utc>>> for Query

Source§

fn eq(&self, other: &DistanceFeatureQuery<DateTime<Utc>>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<DistanceFeatureQuery<GeoLocation>> for Query

Source§

fn eq(&self, other: &DistanceFeatureQuery<GeoLocation>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ExistsQuery> for Query

Source§

fn eq(&self, other: &ExistsQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<FunctionScoreQuery> for Query

Source§

fn eq(&self, other: &FunctionScoreQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<FuzzyQuery> for Query

Source§

fn eq(&self, other: &FuzzyQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<GeoBoundingBoxQuery> for Query

Source§

fn eq(&self, other: &GeoBoundingBoxQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<GeoDistanceQuery> for Query

Source§

fn eq(&self, other: &GeoDistanceQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<GeoShapeLookupQuery> for Query

Source§

fn eq(&self, other: &GeoShapeLookupQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<GeoShapeQuery> for Query

Source§

fn eq(&self, other: &GeoShapeQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<HasChildQuery> for Query

Source§

fn eq(&self, other: &HasChildQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<HasParentQuery> for Query

Source§

fn eq(&self, other: &HasParentQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<IdsQuery> for Query

Source§

fn eq(&self, other: &IdsQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<JsonQuery> for Query

Source§

fn eq(&self, other: &JsonQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<KnnQuery> for Query

Source§

fn eq(&self, other: &KnnQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MatchAllQuery> for Query

Source§

fn eq(&self, other: &MatchAllQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MatchBoolPrefixQuery> for Query

Source§

fn eq(&self, other: &MatchBoolPrefixQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MatchNoneQuery> for Query

Source§

fn eq(&self, other: &MatchNoneQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MatchPhrasePrefixQuery> for Query

Source§

fn eq(&self, other: &MatchPhrasePrefixQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MatchPhraseQuery> for Query

Source§

fn eq(&self, other: &MatchPhraseQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MatchQuery> for Query

Source§

fn eq(&self, other: &MatchQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MoreLikeThisQuery> for Query

Source§

fn eq(&self, other: &MoreLikeThisQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<MultiMatchQuery> for Query

Source§

fn eq(&self, other: &MultiMatchQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<NestedQuery> for Query

Source§

fn eq(&self, other: &NestedQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ParentIdQuery> for Query

Source§

fn eq(&self, other: &ParentIdQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<PercolateLookupQuery> for Query

Source§

fn eq(&self, other: &PercolateLookupQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<PercolateQuery> for Query

Source§

fn eq(&self, other: &PercolateQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<PinnedQuery> for Query

Source§

fn eq(&self, other: &PinnedQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<PrefixQuery> for Query

Source§

fn eq(&self, other: &PrefixQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for BoolQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for BoostingQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for CombinedFieldsQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ConstantScoreQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for DisMaxQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for DistanceFeatureQuery<DateTime<Utc>>

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for DistanceFeatureQuery<GeoLocation>

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ExistsQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for FunctionScoreQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for FuzzyQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for GeoBoundingBoxQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for GeoDistanceQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for GeoShapeLookupQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for GeoShapeQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for HasChildQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for HasParentQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for IdsQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for JsonQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for KnnQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MatchAllQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MatchBoolPrefixQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MatchNoneQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MatchPhrasePrefixQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MatchPhraseQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MatchQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MoreLikeThisQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for MultiMatchQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for NestedQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ParentIdQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for PercolateLookupQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for PercolateQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for PinnedQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for PrefixQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for QueryStringQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RangeQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RankFeatureLinearQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RankFeatureLogarithmQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RankFeatureQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RankFeatureSaturationQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RankFeatureSigmoidQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for RegexpQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ScriptQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ScriptScoreQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ShapeLookupQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for ShapeQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SimpleQueryStringQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanContainingQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanFieldMaskingQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanFirstQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanMultiQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanNearQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanNotQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanOrQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanTermQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for SpanWithinQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for TermQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for TermsLookupQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for TermsQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for TermsSetQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for WildcardQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Query> for WrapperQuery

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<QueryStringQuery> for Query

Source§

fn eq(&self, other: &QueryStringQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RangeQuery> for Query

Source§

fn eq(&self, other: &RangeQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RankFeatureLinearQuery> for Query

Source§

fn eq(&self, other: &RankFeatureLinearQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RankFeatureLogarithmQuery> for Query

Source§

fn eq(&self, other: &RankFeatureLogarithmQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RankFeatureQuery> for Query

Source§

fn eq(&self, other: &RankFeatureQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RankFeatureSaturationQuery> for Query

Source§

fn eq(&self, other: &RankFeatureSaturationQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RankFeatureSigmoidQuery> for Query

Source§

fn eq(&self, other: &RankFeatureSigmoidQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RegexpQuery> for Query

Source§

fn eq(&self, other: &RegexpQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ScriptQuery> for Query

Source§

fn eq(&self, other: &ScriptQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ScriptScoreQuery> for Query

Source§

fn eq(&self, other: &ScriptScoreQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ShapeLookupQuery> for Query

Source§

fn eq(&self, other: &ShapeLookupQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<ShapeQuery> for Query

Source§

fn eq(&self, other: &ShapeQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SimpleQueryStringQuery> for Query

Source§

fn eq(&self, other: &SimpleQueryStringQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanContainingQuery> for Query

Source§

fn eq(&self, other: &SpanContainingQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanFieldMaskingQuery> for Query

Source§

fn eq(&self, other: &SpanFieldMaskingQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanFirstQuery> for Query

Source§

fn eq(&self, other: &SpanFirstQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanMultiQuery> for Query

Source§

fn eq(&self, other: &SpanMultiQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanNearQuery> for Query

Source§

fn eq(&self, other: &SpanNearQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanNotQuery> for Query

Source§

fn eq(&self, other: &SpanNotQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanOrQuery> for Query

Source§

fn eq(&self, other: &SpanOrQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanTermQuery> for Query

Source§

fn eq(&self, other: &SpanTermQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<SpanWithinQuery> for Query

Source§

fn eq(&self, other: &SpanWithinQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<TermQuery> for Query

Source§

fn eq(&self, other: &TermQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<TermsLookupQuery> for Query

Source§

fn eq(&self, other: &TermsLookupQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<TermsQuery> for Query

Source§

fn eq(&self, other: &TermsQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<TermsSetQuery> for Query

Source§

fn eq(&self, other: &TermsSetQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<WildcardQuery> for Query

Source§

fn eq(&self, other: &WildcardQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<WrapperQuery> for Query

Source§

fn eq(&self, other: &WrapperQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for Query

Source§

fn eq(&self, other: &Query) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Query

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Query

Auto Trait Implementations§

§

impl Freeze for Query

§

impl RefUnwindSafe for Query

§

impl Send for Query

§

impl Sync for Query

§

impl Unpin for Query

§

impl UnwindSafe for Query

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.