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
Implementations§
source§impl WrapperQuery
impl WrapperQuery
pub fn serialize<__S>(
__self: &WrapperQuery,
__serializer: __S
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
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?
source§impl PartialEq<Query> for WrapperQuery
impl PartialEq<Query> for WrapperQuery
source§impl PartialEq<WrapperQuery> for Query
impl PartialEq<WrapperQuery> for Query
source§fn 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 ==
.source§impl PartialEq for WrapperQuery
impl PartialEq for WrapperQuery
source§fn 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 ==
.source§impl Serialize for WrapperQuery
impl Serialize for WrapperQuery
impl Eq for WrapperQuery
impl StructuralEq 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§
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