#[non_exhaustive]pub struct BatchCreateTasksMetadata {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: State,
pub failed_requests: HashMap<i32, Status>,
/* private fields */
}Expand description
Metadata message for [BatchCreateTasks].
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 time when the batch create started.
end_time: Option<Timestamp>The time when the batch create finished.
state: StateOutput only. The state of the batch create operation.
failed_requests: HashMap<i32, Status>A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.
Implementations§
Source§impl BatchCreateTasksMetadata
impl BatchCreateTasksMetadata
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 = BatchCreateTasksMetadata::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 = BatchCreateTasksMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = BatchCreateTasksMetadata::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_create_tasks_metadata::State;
let x0 = BatchCreateTasksMetadata::new().set_state(State::Running);
let x1 = BatchCreateTasksMetadata::new().set_state(State::Succeeded);
let x2 = BatchCreateTasksMetadata::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 = BatchCreateTasksMetadata::new().set_failed_requests([
(0, Status::default()/* use setters */),
(1, Status::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for BatchCreateTasksMetadata
impl Clone for BatchCreateTasksMetadata
Source§impl Debug for BatchCreateTasksMetadata
impl Debug for BatchCreateTasksMetadata
Source§impl Default for BatchCreateTasksMetadata
impl Default for BatchCreateTasksMetadata
Source§impl Message for BatchCreateTasksMetadata
impl Message for BatchCreateTasksMetadata
Source§impl PartialEq for BatchCreateTasksMetadata
impl PartialEq for BatchCreateTasksMetadata
impl StructuralPartialEq for BatchCreateTasksMetadata
Auto Trait Implementations§
impl Freeze for BatchCreateTasksMetadata
impl RefUnwindSafe for BatchCreateTasksMetadata
impl Send for BatchCreateTasksMetadata
impl Sync for BatchCreateTasksMetadata
impl Unpin for BatchCreateTasksMetadata
impl UnsafeUnpin for BatchCreateTasksMetadata
impl UnwindSafe for BatchCreateTasksMetadata
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