#[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,
/* private fields */
}Expand description
Metadata describing an 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.create_time: Option<Timestamp>The time the operation was created.
end_time: Option<Timestamp>The time the operation finished running.
target: StringTarget of the operation - for example projects/project-1/locations/global/connectivityTests/test-1
verb: StringName of the verb executed by the operation.
status_detail: StringHuman-readable status of the operation, if any.
cancel_requested: boolSpecifies if cancellation was requested for the operation.
api_version: StringAPI version.
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.
Trait Implementations§
Source§impl Clone for OperationMetadata
impl Clone for OperationMetadata
Source§fn clone(&self) -> OperationMetadata
fn clone(&self) -> OperationMetadata
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 OperationMetadata
impl Debug for OperationMetadata
Source§impl Default for OperationMetadata
impl Default for OperationMetadata
Source§fn default() -> OperationMetadata
fn default() -> OperationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for OperationMetadata
impl Message for OperationMetadata
Source§impl PartialEq for OperationMetadata
impl PartialEq for OperationMetadata
impl StructuralPartialEq for OperationMetadata
Auto Trait Implementations§
impl Freeze for OperationMetadata
impl RefUnwindSafe for OperationMetadata
impl Send for OperationMetadata
impl Sync for OperationMetadata
impl Unpin for OperationMetadata
impl UnwindSafe for OperationMetadata
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