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
sourceimpl Clone for WrapperQuery
impl Clone for WrapperQuery
sourcefn clone(&self) -> WrapperQuery
fn clone(&self) -> WrapperQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WrapperQuery
impl Debug for WrapperQuery
sourceimpl From<WrapperQuery> for Option<Query>
impl From<WrapperQuery> for Option<Query>
sourcefn from(q: WrapperQuery) -> Self
fn from(q: WrapperQuery) -> Self
Converts to this type from the input type.
sourceimpl From<WrapperQuery> for Query
impl From<WrapperQuery> for Query
sourcefn from(q: WrapperQuery) -> Self
fn from(q: WrapperQuery) -> Self
Converts to this type from the input type.
sourceimpl 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?
sourceimpl PartialEq<Query> for WrapperQuery
impl PartialEq<Query> for WrapperQuery
sourceimpl PartialEq<WrapperQuery> for Query
impl PartialEq<WrapperQuery> for Query
sourceimpl PartialEq<WrapperQuery> for WrapperQuery
impl PartialEq<WrapperQuery> for WrapperQuery
sourcefn eq(&self, other: &WrapperQuery) -> bool
fn eq(&self, other: &WrapperQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WrapperQuery) -> bool
fn ne(&self, other: &WrapperQuery) -> bool
This method tests for !=
.
sourceimpl Serialize for WrapperQuery
impl Serialize for WrapperQuery
impl StructuralPartialEq for WrapperQuery
Auto Trait Implementations
impl RefUnwindSafe for WrapperQuery
impl Send for WrapperQuery
impl Sync for WrapperQuery
impl Unpin for WrapperQuery
impl UnwindSafe for WrapperQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more