#[non_exhaustive]pub struct BatchDeleteTasksMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: State,
pub failed_requests: HashMap<i32, Status>,
/* private fields */
}Expand description
Metadata for the long-running operation returned by BatchDeleteTasks. This message is used to hold metadata information about the batch delete tasks operation; that is, it is put in google.longrunning.Operation.metadata.
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>Output only. The time when the batch delete started.
end_time: Option<Timestamp>Output only. The time when the batch delete finished.
state: StateOutput only. The state of the batch delete operation.
failed_requests: HashMap<i32, Status>Output only. A map of failed requests, where the key is the index of the request in BatchDeleteTasksRequest.names and the value is the error status.
Implementations§
Source§impl BatchDeleteTasksMetadata
impl BatchDeleteTasksMetadata
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 = BatchDeleteTasksMetadata::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 = BatchDeleteTasksMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = BatchDeleteTasksMetadata::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<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
ⓘ
use google_cloud_tasks_v2::model::batch_delete_tasks_metadata::State;
let x0 = BatchDeleteTasksMetadata::new().set_state(State::Running);
let x1 = BatchDeleteTasksMetadata::new().set_state(State::Succeeded);
let x2 = BatchDeleteTasksMetadata::new().set_state(State::PartiallySucceeded);Sourcepub fn set_failed_requests<T, K, V>(self, v: T) -> Self
pub fn set_failed_requests<T, K, V>(self, v: T) -> Self
Sets the value of failed_requests.
§Example
ⓘ
use google_cloud_rpc::model::Status;
let x = BatchDeleteTasksMetadata::new().set_failed_requests([
(0, Status::default()/* use setters */),
(1, Status::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for BatchDeleteTasksMetadata
impl Clone for BatchDeleteTasksMetadata
Source§impl Debug for BatchDeleteTasksMetadata
impl Debug for BatchDeleteTasksMetadata
Source§impl Default for BatchDeleteTasksMetadata
impl Default for BatchDeleteTasksMetadata
Source§impl Message for BatchDeleteTasksMetadata
impl Message for BatchDeleteTasksMetadata
Source§impl PartialEq for BatchDeleteTasksMetadata
impl PartialEq for BatchDeleteTasksMetadata
impl StructuralPartialEq for BatchDeleteTasksMetadata
Auto Trait Implementations§
impl Freeze for BatchDeleteTasksMetadata
impl RefUnwindSafe for BatchDeleteTasksMetadata
impl Send for BatchDeleteTasksMetadata
impl Sync for BatchDeleteTasksMetadata
impl Unpin for BatchDeleteTasksMetadata
impl UnsafeUnpin for BatchDeleteTasksMetadata
impl UnwindSafe for BatchDeleteTasksMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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>
Wrap the input message
T in a tonic::Request