#[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
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.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.
§Example
ⓘ
use wkt::Timestamp;
let x = CopyLogEntriesMetadata::new().set_start_time(Timestamp::default()/* use setters */);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.
§Example
ⓘ
use wkt::Timestamp;
let x = CopyLogEntriesMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = CopyLogEntriesMetadata::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
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
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.
§Example
ⓘ
use google_cloud_logging_v2::model::OperationState;
let x0 = CopyLogEntriesMetadata::new().set_state(OperationState::Scheduled);
let x1 = CopyLogEntriesMetadata::new().set_state(OperationState::WaitingForPermissions);
let x2 = CopyLogEntriesMetadata::new().set_state(OperationState::Running);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.
§Example
ⓘ
let x = CopyLogEntriesMetadata::new().set_cancellation_requested(true);Sourcepub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<CopyLogEntriesRequest>,
pub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<CopyLogEntriesRequest>,
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.
§Example
ⓘ
use google_cloud_logging_v2::model::CopyLogEntriesRequest;
let x = CopyLogEntriesMetadata::new().set_or_clear_request(Some(CopyLogEntriesRequest::default()/* use setters */));
let x = CopyLogEntriesMetadata::new().set_or_clear_request(None::<CopyLogEntriesRequest>);Sourcepub fn set_progress<T: Into<i32>>(self, v: T) -> Self
pub fn set_progress<T: Into<i32>>(self, v: T) -> Self
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.
§Example
ⓘ
let x = CopyLogEntriesMetadata::new().set_writer_identity("example");Trait Implementations§
Source§impl Clone for CopyLogEntriesMetadata
impl Clone for CopyLogEntriesMetadata
Source§fn clone(&self) -> CopyLogEntriesMetadata
fn clone(&self) -> CopyLogEntriesMetadata
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 CopyLogEntriesMetadata
impl Debug for CopyLogEntriesMetadata
Source§impl Default for CopyLogEntriesMetadata
impl Default for CopyLogEntriesMetadata
Source§fn default() -> CopyLogEntriesMetadata
fn default() -> CopyLogEntriesMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CopyLogEntriesMetadata
impl Message for CopyLogEntriesMetadata
Source§impl PartialEq for CopyLogEntriesMetadata
impl PartialEq for CopyLogEntriesMetadata
impl StructuralPartialEq for CopyLogEntriesMetadata
Auto Trait Implementations§
impl Freeze for CopyLogEntriesMetadata
impl RefUnwindSafe for CopyLogEntriesMetadata
impl Send for CopyLogEntriesMetadata
impl Sync for CopyLogEntriesMetadata
impl Unpin for CopyLogEntriesMetadata
impl UnwindSafe for CopyLogEntriesMetadata
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