#[non_exhaustive]pub struct CopyLogEntriesMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: OperationState,
pub cancellation_requested: bool,
pub request: Option<CopyLogEntriesRequest>,
pub progress: i32,
pub writer_identity: String,
/* private fields */
}Expand description
Metadata for CopyLogEntries long running operations.
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.start_time: Option<Timestamp>The create time of an operation.
end_time: Option<Timestamp>The end time of an operation.
state: OperationStateState of an operation.
cancellation_requested: boolIdentifies whether the user has requested cancellation of the operation.
request: Option<CopyLogEntriesRequest>CopyLogEntries RPC request.
progress: i32Estimated progress of the operation (0 - 100%).
writer_identity: StringThe IAM identity of a service account that must be granted access to the destination.
If the service account is not granted permission to the destination within an hour, the operation will be cancelled.
For example: "serviceAccount:foo@bar.com"
Implementations§
Source§impl CopyLogEntriesMetadata
impl CopyLogEntriesMetadata
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_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_state<T: Into<OperationState>>(self, v: T) -> Self
pub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
Sets the value of state.
Sourcepub fn set_cancellation_requested<T: Into<bool>>(self, v: T) -> Self
pub fn set_cancellation_requested<T: Into<bool>>(self, v: T) -> Self
Sets the value of cancellation_requested.
Sourcepub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<CopyLogEntriesRequest>,
pub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<CopyLogEntriesRequest>,
Sets the value of request.
Sourcepub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CopyLogEntriesRequest>,
pub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<CopyLogEntriesRequest>,
Sets or clears the value of request.
Sourcepub fn set_progress<T: Into<i32>>(self, v: T) -> Self
pub fn set_progress<T: Into<i32>>(self, v: T) -> Self
Sets the value of progress.
Sourcepub fn set_writer_identity<T: Into<String>>(self, v: T) -> Self
pub fn set_writer_identity<T: Into<String>>(self, v: T) -> Self
Sets the value of writer_identity.
Trait Implementations§
Source§impl Clone for CopyLogEntriesMetadata
impl Clone for CopyLogEntriesMetadata
Source§fn clone(&self) -> CopyLogEntriesMetadata
fn clone(&self) -> CopyLogEntriesMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more