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
Source§impl PartialEq<Query> for WrapperQuery
impl PartialEq<Query> for WrapperQuery
Source§impl PartialEq<WrapperQuery> for Query
impl PartialEq<WrapperQuery> for Query
Source§impl PartialEq for WrapperQuery
impl PartialEq for WrapperQuery
Source§impl Serialize for WrapperQuery
impl Serialize for WrapperQuery
impl Eq for WrapperQuery
impl StructuralPartialEq for WrapperQuery
Auto Trait Implementations§
impl Freeze for WrapperQuery
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