#[non_exhaustive]pub struct CommonLongRunningOperationMetadata {
pub create_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub type: String,
pub requested_cancellation: bool,
pub progress_percent: i32,
/* private fields */
}Expand description
The message contains metadata that is common to all Storage Control
long-running operations, present in its google.longrunning.Operation
messages, and accessible via metadata.common_metadata.
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>Output only. The time the operation was created.
end_time: Option<Timestamp>Output only. The time the operation finished running.
update_time: Option<Timestamp>Output only. The time the operation was last modified.
type: StringOutput only. The type of operation invoked.
requested_cancellation: boolOutput only. Identifies whether the user has requested cancellation.
progress_percent: i32Output only. The estimated progress of the operation in percentage [0, 100]. The value -1 means the progress is unknown.
Implementations§
Source§impl CommonLongRunningOperationMetadata
impl CommonLongRunningOperationMetadata
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_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
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.
Sourcepub fn set_requested_cancellation<T: Into<bool>>(self, v: T) -> Self
pub fn set_requested_cancellation<T: Into<bool>>(self, v: T) -> Self
Sets the value of requested_cancellation.
Sourcepub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_progress_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of progress_percent.
Trait Implementations§
Source§impl Clone for CommonLongRunningOperationMetadata
impl Clone for CommonLongRunningOperationMetadata
Source§fn clone(&self) -> CommonLongRunningOperationMetadata
fn clone(&self) -> CommonLongRunningOperationMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CommonLongRunningOperationMetadata
impl Default for CommonLongRunningOperationMetadata
Source§fn default() -> CommonLongRunningOperationMetadata
fn default() -> CommonLongRunningOperationMetadata
Source§impl PartialEq for CommonLongRunningOperationMetadata
impl PartialEq for CommonLongRunningOperationMetadata
Source§fn eq(&self, other: &CommonLongRunningOperationMetadata) -> bool
fn eq(&self, other: &CommonLongRunningOperationMetadata) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommonLongRunningOperationMetadata
Auto Trait Implementations§
impl Freeze for CommonLongRunningOperationMetadata
impl RefUnwindSafe for CommonLongRunningOperationMetadata
impl Send for CommonLongRunningOperationMetadata
impl Sync for CommonLongRunningOperationMetadata
impl Unpin for CommonLongRunningOperationMetadata
impl UnwindSafe for CommonLongRunningOperationMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request