#[non_exhaustive]pub struct ReindexStatus {Show 15 fields
pub slice_id: Option<i32>,
pub batches: Option<i64>,
pub created: Option<i64>,
pub deleted: Option<i64>,
pub noops: Option<i64>,
pub requests_per_second: Option<f32>,
pub retries: Option<Retries>,
pub throttled: Option<Duration>,
pub throttled_millis: Option<i64>,
pub throttled_until: Option<Duration>,
pub throttled_until_millis: Option<i64>,
pub total: Option<i64>,
pub updated: Option<i64>,
pub version_conflicts: Option<i64>,
pub cancelled: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.slice_id: Option<i32>The slice ID
batches: Option<i64>The number of scroll responses pulled back by the reindex.
created: Option<i64>The number of documents that were successfully created.
deleted: Option<i64>The number of documents that were successfully deleted.
noops: Option<i64>The number of documents that were ignored because the script used for the reindex returned a noop value for ctx.op.
requests_per_second: Option<f32>The number of requests per second effectively executed during the reindex.
retries: Option<Retries>The number of retries attempted by reindex. bulk is the number of bulk actions retried and search is the number of search actions retried.
throttled: Option<Duration>§throttled_millis: Option<i64>Number of milliseconds the request slept to conform to requests_per_second.
throttled_until: Option<Duration>§throttled_until_millis: Option<i64>This field should always be equal to zero in a _reindex response.
It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to requests_per_second.
total: Option<i64>The number of documents that were successfully processed.
updated: Option<i64>The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.
version_conflicts: Option<i64>The number of version conflicts that reindex hits.
cancelled: Option<String>The reason for cancellation if the slice was canceled
Implementations§
Source§impl ReindexStatus
impl ReindexStatus
Source§impl ReindexStatus
impl ReindexStatus
Sourcepub fn slice_id(self, value: i32) -> ReindexStatus
pub fn slice_id(self, value: i32) -> ReindexStatus
Sets slice_id.
Sourcepub fn created(self, value: i64) -> ReindexStatus
pub fn created(self, value: i64) -> ReindexStatus
Sets created.
Sourcepub fn throttled(self, value: impl Into<Duration>) -> ReindexStatus
pub fn throttled(self, value: impl Into<Duration>) -> ReindexStatus
Sets throttled.
Sourcepub fn throttled_until(self, value: impl Into<Duration>) -> ReindexStatus
pub fn throttled_until(self, value: impl Into<Duration>) -> ReindexStatus
Sets throttled_until.
Sourcepub fn updated(self, value: i64) -> ReindexStatus
pub fn updated(self, value: i64) -> ReindexStatus
Sets updated.
Sourcepub fn cancelled(self, value: impl Into<String>) -> ReindexStatus
pub fn cancelled(self, value: impl Into<String>) -> ReindexStatus
Sets cancelled.
Trait Implementations§
Source§impl Clone for ReindexStatus
impl Clone for ReindexStatus
Source§fn clone(&self) -> ReindexStatus
fn clone(&self) -> ReindexStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more