#[non_exhaustive]pub struct Response {
pub expiration_time_in_millis: Option<UnitMillis>,
pub id: Option<String>,
pub is_running: Option<bool>,
pub is_partial: Option<bool>,
pub start_time_in_millis: Option<UnitMillis>,
pub completion_status: Option<u32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expiration_time_in_millis: Option<UnitMillis>The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.
id: Option<String>The identifier for the search.
is_running: Option<bool>If true, the search is still running.
If false, the search has finished.
is_partial: Option<bool>If true, the response does not contain complete search results.
If is_partial is true and is_running is true, the search is still running.
If is_partial is true but is_running is false, the results are partial due to a failure or timeout.
start_time_in_millis: Option<UnitMillis>The timestamp, in milliseconds since the Unix epoch, when the search started. The API returns this property only for running searches.
completion_status: Option<u32>The HTTP status code for the search. The API returns this property only for completed searches.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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