#[non_exhaustive]pub struct OperationMetadata {
pub create_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub target: String,
pub verb: String,
pub status_detail: String,
pub cancel_requested: bool,
pub api_version: String,
pub request_resource: Option<Any>,
pub stages: Vec<Stage>,
pub source_token: String,
pub build_name: String,
pub operation_type: OperationType,
/* private fields */
}
Expand description
Represents the metadata of the long-running 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.create_time: Option<Timestamp>
The time the operation was created.
end_time: Option<Timestamp>
The time the operation finished running.
target: String
Server-defined resource path for the target of the operation.
verb: String
Name of the verb executed by the operation.
status_detail: String
Human-readable status of the operation, if any.
cancel_requested: bool
Identifies whether the user has requested cancellation
of the operation. Operations that have successfully been cancelled
have
google.longrunning.Operation.error
value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
.
api_version: String
API version used to start the operation.
request_resource: Option<Any>
The original request that started the operation.
stages: Vec<Stage>
Mechanism for reporting in-progress stages
source_token: String
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
build_name: String
The build name of the function for create and update operations.
operation_type: OperationType
The operation type.
Implementations§
Source§impl OperationMetadata
impl OperationMetadata
pub fn new() -> Self
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_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_status_detail<T: Into<String>>(self, v: T) -> Self
pub fn set_status_detail<T: Into<String>>(self, v: T) -> Self
Sets the value of status_detail.
Sourcepub fn set_cancel_requested<T: Into<bool>>(self, v: T) -> Self
pub fn set_cancel_requested<T: Into<bool>>(self, v: T) -> Self
Sets the value of cancel_requested.
Sourcepub fn set_api_version<T: Into<String>>(self, v: T) -> Self
pub fn set_api_version<T: Into<String>>(self, v: T) -> Self
Sets the value of api_version.
Sourcepub fn set_request_resource<T>(self, v: T) -> Self
pub fn set_request_resource<T>(self, v: T) -> Self
Sets the value of request_resource.
Sourcepub fn set_or_clear_request_resource<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_request_resource<T>(self, v: Option<T>) -> Self
Sets or clears the value of request_resource.
Sourcepub fn set_stages<T, V>(self, v: T) -> Self
pub fn set_stages<T, V>(self, v: T) -> Self
Sets the value of stages.
Sourcepub fn set_source_token<T: Into<String>>(self, v: T) -> Self
pub fn set_source_token<T: Into<String>>(self, v: T) -> Self
Sets the value of source_token.
Sourcepub fn set_build_name<T: Into<String>>(self, v: T) -> Self
pub fn set_build_name<T: Into<String>>(self, v: T) -> Self
Sets the value of build_name.
Sourcepub fn set_operation_type<T: Into<OperationType>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<OperationType>>(self, v: T) -> Self
Sets the value of operation_type.
Trait Implementations§
Source§impl Clone for OperationMetadata
impl Clone for OperationMetadata
Source§fn clone(&self) -> OperationMetadata
fn clone(&self) -> OperationMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more