#[non_exhaustive]pub struct OperationMetadataV1 {
pub method: String,
pub insert_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub user: String,
pub target: String,
pub ephemeral_message: String,
pub warning: Vec<String>,
pub method_metadata: Option<MethodMetadata>,
/* private fields */
}Expand description
Metadata for the given google.longrunning.Operation.
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.method: StringAPI method that initiated this operation. Example:
google.appengine.v1.Versions.CreateVersion.
@OutputOnly
insert_time: Option<Timestamp>Time that this operation was created.
@OutputOnly
end_time: Option<Timestamp>Time that this operation completed.
@OutputOnly
user: StringUser who requested this operation.
@OutputOnly
target: StringName of the resource that this operation is acting on. Example:
apps/myapp/services/default.
@OutputOnly
ephemeral_message: StringEphemeral message that may change every time the operation is polled. @OutputOnly
warning: Vec<String>Durable messages that persist on every operation poll. @OutputOnly
method_metadata: Option<MethodMetadata>Metadata specific to the type of operation in progress. @OutputOnly
Implementations§
Source§impl OperationMetadataV1
impl OperationMetadataV1
pub fn new() -> Self
Sourcepub fn set_method<T: Into<String>>(self, v: T) -> Self
pub fn set_method<T: Into<String>>(self, v: T) -> Self
Sets the value of method.
Sourcepub fn set_insert_time<T>(self, v: T) -> Self
pub fn set_insert_time<T>(self, v: T) -> Self
Sets the value of insert_time.
Sourcepub fn set_or_clear_insert_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_insert_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of insert_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_target<T: Into<String>>(self, v: T) -> Self
pub fn set_target<T: Into<String>>(self, v: T) -> Self
Sets the value of target.
Sourcepub fn set_ephemeral_message<T: Into<String>>(self, v: T) -> Self
pub fn set_ephemeral_message<T: Into<String>>(self, v: T) -> Self
Sets the value of ephemeral_message.
Sourcepub fn set_warning<T, V>(self, v: T) -> Self
pub fn set_warning<T, V>(self, v: T) -> Self
Sets the value of warning.
Sourcepub fn set_method_metadata<T: Into<Option<MethodMetadata>>>(self, v: T) -> Self
pub fn set_method_metadata<T: Into<Option<MethodMetadata>>>(self, v: T) -> Self
Sets the value of method_metadata.
Note that all the setters affecting method_metadata are mutually
exclusive.
Sourcepub fn create_version_metadata(&self) -> Option<&Box<CreateVersionMetadataV1>>
pub fn create_version_metadata(&self) -> Option<&Box<CreateVersionMetadataV1>>
The value of method_metadata
if it holds a CreateVersionMetadata, None if the field is not set or
holds a different branch.
Sourcepub fn set_create_version_metadata<T: Into<Box<CreateVersionMetadataV1>>>(
self,
v: T,
) -> Self
pub fn set_create_version_metadata<T: Into<Box<CreateVersionMetadataV1>>>( self, v: T, ) -> Self
Sets the value of method_metadata
to hold a CreateVersionMetadata.
Note that all the setters affecting method_metadata are
mutually exclusive.
Trait Implementations§
Source§impl Clone for OperationMetadataV1
impl Clone for OperationMetadataV1
Source§fn clone(&self) -> OperationMetadataV1
fn clone(&self) -> OperationMetadataV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more