#[non_exhaustive]pub struct GenericOperationMetadata {
pub partial_failures: Vec<Status>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
/* private fields */
}Available on crate features
dataset-service or deployment-resource-pool-service or endpoint-service or feature-online-store-admin-service or feature-registry-service or featurestore-service or gen-ai-tuning-service or index-endpoint-service or index-service or job-service or metadata-service or migration-service or model-garden-service or model-service or notebook-service or persistent-resource-service or pipeline-service or reasoning-engine-service or schedule-service or specialist-pool-service or tensorboard-service or vertex-rag-data-service or vizier-service only.Expand description
Generic Metadata shared by all 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.partial_failures: Vec<Status>Output only. Partial failures encountered. E.g. single files that couldn’t be read. This field should never exceed 20 entries. Status details field will contain standard Google Cloud error details.
create_time: Option<Timestamp>Output only. Time when the operation was created.
update_time: Option<Timestamp>Output only. Time when the operation was updated for the last time. If the operation has finished (successfully or not), this is the finish time.
Implementations§
Source§impl GenericOperationMetadata
impl GenericOperationMetadata
pub fn new() -> Self
Sourcepub fn set_partial_failures<T, V>(self, v: T) -> Self
pub fn set_partial_failures<T, V>(self, v: T) -> Self
Sets the value of partial_failures.
§Example
ⓘ
use rpc::model::Status;
let x = GenericOperationMetadata::new()
.set_partial_failures([
Status::default()/* use setters */,
Status::default()/* use (different) setters */,
]);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.
§Example
ⓘ
use wkt::Timestamp;
let x = GenericOperationMetadata::new().set_create_time(Timestamp::default()/* use setters */);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.
§Example
ⓘ
use wkt::Timestamp;
let x = GenericOperationMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = GenericOperationMetadata::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = GenericOperationMetadata::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = GenericOperationMetadata::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = GenericOperationMetadata::new().set_or_clear_update_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for GenericOperationMetadata
impl Clone for GenericOperationMetadata
Source§fn clone(&self) -> GenericOperationMetadata
fn clone(&self) -> GenericOperationMetadata
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 GenericOperationMetadata
impl Debug for GenericOperationMetadata
Source§impl Default for GenericOperationMetadata
impl Default for GenericOperationMetadata
Source§fn default() -> GenericOperationMetadata
fn default() -> GenericOperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for GenericOperationMetadata
impl Message for GenericOperationMetadata
Source§impl PartialEq for GenericOperationMetadata
impl PartialEq for GenericOperationMetadata
impl StructuralPartialEq for GenericOperationMetadata
Auto Trait Implementations§
impl Freeze for GenericOperationMetadata
impl RefUnwindSafe for GenericOperationMetadata
impl Send for GenericOperationMetadata
impl Sync for GenericOperationMetadata
impl Unpin for GenericOperationMetadata
impl UnwindSafe for GenericOperationMetadata
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