#[non_exhaustive]pub struct BatchOperationMetadata {
pub batch: String,
pub batch_uuid: String,
pub create_time: Option<Timestamp>,
pub done_time: Option<Timestamp>,
pub operation_type: BatchOperationType,
pub description: String,
pub labels: HashMap<String, String>,
pub warnings: Vec<String>,
/* private fields */
}Expand description
Metadata describing the Batch operation.
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.batch: StringName of the batch for the operation.
batch_uuid: StringBatch UUID for the operation.
create_time: Option<Timestamp>The time when the operation was created.
done_time: Option<Timestamp>The time when the operation finished.
operation_type: BatchOperationTypeThe operation type.
description: StringShort description of the operation.
labels: HashMap<String, String>Labels associated with the operation.
warnings: Vec<String>Warnings encountered during operation execution.
Implementations§
Source§impl BatchOperationMetadata
impl BatchOperationMetadata
pub fn new() -> Self
Sourcepub fn set_batch_uuid<T: Into<String>>(self, v: T) -> Self
pub fn set_batch_uuid<T: Into<String>>(self, v: T) -> Self
Sets the value of batch_uuid.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_done_time<T>(self, v: T) -> Self
pub fn set_done_time<T>(self, v: T) -> Self
Sets the value of done_time.
Sourcepub fn set_or_clear_done_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_done_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of done_time.
Sourcepub fn set_operation_type<T: Into<BatchOperationType>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<BatchOperationType>>(self, v: T) -> Self
Sets the value of operation_type.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_warnings<T, V>(self, v: T) -> Self
pub fn set_warnings<T, V>(self, v: T) -> Self
Sets the value of warnings.
Trait Implementations§
Source§impl Clone for BatchOperationMetadata
impl Clone for BatchOperationMetadata
Source§fn clone(&self) -> BatchOperationMetadata
fn clone(&self) -> BatchOperationMetadata
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 BatchOperationMetadata
impl Debug for BatchOperationMetadata
Source§impl Default for BatchOperationMetadata
impl Default for BatchOperationMetadata
Source§fn default() -> BatchOperationMetadata
fn default() -> BatchOperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for BatchOperationMetadata
impl Message for BatchOperationMetadata
Source§impl PartialEq for BatchOperationMetadata
impl PartialEq for BatchOperationMetadata
impl StructuralPartialEq for BatchOperationMetadata
Auto Trait Implementations§
impl Freeze for BatchOperationMetadata
impl RefUnwindSafe for BatchOperationMetadata
impl Send for BatchOperationMetadata
impl Sync for BatchOperationMetadata
impl Unpin for BatchOperationMetadata
impl UnwindSafe for BatchOperationMetadata
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