Struct elasticsearch::async_search::AsyncSearchGet
source · pub struct AsyncSearchGet<'a, 'b> { /* private fields */ }
Expand description
Builder for the Async Search Get API
Retrieves the results of a previously submitted async search request given its ID.
Implementations
sourceimpl<'a, 'b> AsyncSearchGet<'a, 'b>
impl<'a, 'b> AsyncSearchGet<'a, 'b>
sourcepub fn new(transport: &'a Transport, parts: AsyncSearchGetParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: AsyncSearchGetParts<'b>) -> Self
Creates a new instance of AsyncSearchGet with the specified API parts
sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
sourcepub fn keep_alive(self, keep_alive: &'b str) -> Self
pub fn keep_alive(self, keep_alive: &'b str) -> Self
Specify the time interval in which the results (partial or final) for this search will be available
sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
sourcepub fn typed_keys(self, typed_keys: bool) -> Self
pub fn typed_keys(self, typed_keys: bool) -> Self
Specify whether aggregation and suggester names should be prefixed by their respective types in the response
sourcepub fn wait_for_completion_timeout(
self,
wait_for_completion_timeout: &'b str
) -> Self
pub fn wait_for_completion_timeout(
self,
wait_for_completion_timeout: &'b str
) -> Self
Specify the time that the request should block waiting for the final response
Trait Implementations
sourceimpl<'a, 'b> Clone for AsyncSearchGet<'a, 'b>
impl<'a, 'b> Clone for AsyncSearchGet<'a, 'b>
sourcefn clone(&self) -> AsyncSearchGet<'a, 'b>
fn clone(&self) -> AsyncSearchGet<'a, 'b>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more