#[non_exhaustive]pub struct IndexOperationMetadata {
pub common: Option<CommonMetadata>,
pub progress_entities: Option<Progress>,
pub index_id: String,
/* private fields */
}Expand description
Metadata for Index operations.
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.common: Option<CommonMetadata>Metadata common to all Datastore Admin operations.
progress_entities: Option<Progress>An estimate of the number of entities processed.
index_id: StringThe index resource ID that this operation is acting on.
Implementations§
Source§impl IndexOperationMetadata
impl IndexOperationMetadata
pub fn new() -> Self
Sourcepub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonMetadata>,
pub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonMetadata>,
Sets the value of common.
Sourcepub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonMetadata>,
pub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonMetadata>,
Sets or clears the value of common.
Sourcepub fn set_progress_entities<T>(self, v: T) -> Self
pub fn set_progress_entities<T>(self, v: T) -> Self
Sets the value of progress_entities.
Sourcepub fn set_or_clear_progress_entities<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_progress_entities<T>(self, v: Option<T>) -> Self
Sets or clears the value of progress_entities.
Sourcepub fn set_index_id<T: Into<String>>(self, v: T) -> Self
pub fn set_index_id<T: Into<String>>(self, v: T) -> Self
Sets the value of index_id.
Trait Implementations§
Source§impl Clone for IndexOperationMetadata
impl Clone for IndexOperationMetadata
Source§fn clone(&self) -> IndexOperationMetadata
fn clone(&self) -> IndexOperationMetadata
Returns a duplicate 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 IndexOperationMetadata
impl Debug for IndexOperationMetadata
Source§impl Default for IndexOperationMetadata
impl Default for IndexOperationMetadata
Source§fn default() -> IndexOperationMetadata
fn default() -> IndexOperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for IndexOperationMetadata
impl Message for IndexOperationMetadata
Source§impl PartialEq for IndexOperationMetadata
impl PartialEq for IndexOperationMetadata
impl StructuralPartialEq for IndexOperationMetadata
Auto Trait Implementations§
impl Freeze for IndexOperationMetadata
impl RefUnwindSafe for IndexOperationMetadata
impl Send for IndexOperationMetadata
impl Sync for IndexOperationMetadata
impl Unpin for IndexOperationMetadata
impl UnwindSafe for IndexOperationMetadata
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