Struct elasticsearch_dsl::search::queries::specialized::WrapperQuery
source · pub struct WrapperQuery { /* private fields */ }
Expand description
A query that accepts any other query as base64 encoded string.
This query is more useful in the context of the Java high-level REST client or transport client to also accept queries as json formatted string. In these cases queries can be specified as a json or yaml formatted string or as a query builder (which is a available in the Java high-level REST client).
To create wrapper query:
Query::wrapper("eyJ0ZXJtIiA6IHsgInVzZXIuaWQiIDogImtpbWNoeSIgfX0=");
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wrapper-query.html
Trait Implementations§
source§impl Clone for WrapperQuery
impl Clone for WrapperQuery
source§fn clone(&self) -> WrapperQuery
fn clone(&self) -> WrapperQuery
Returns a copy 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 WrapperQuery
impl Debug for WrapperQuery
source§impl From<WrapperQuery> for Option<Query>
impl From<WrapperQuery> for Option<Query>
source§fn from(q: WrapperQuery) -> Self
fn from(q: WrapperQuery) -> Self
Converts to this type from the input type.
source§impl From<WrapperQuery> for Query
impl From<WrapperQuery> for Query
source§fn from(q: WrapperQuery) -> Self
fn from(q: WrapperQuery) -> Self
Converts to this type from the input type.
source§impl IntoIterator for WrapperQuery
impl IntoIterator for WrapperQuery
§type Item = WrapperQuery
type Item = WrapperQuery
The type of the elements being iterated over.
§type IntoIter = IntoIter<<WrapperQuery as IntoIterator>::Item>
type IntoIter = IntoIter<<WrapperQuery as IntoIterator>::Item>
Which kind of iterator are we turning this into?