pub struct TaskStatus {
pub completion_time: Option<DateTime<Utc>>,
pub conditions: Option<Vec<GoogleCloudRunV1Condition>>,
pub index: Option<i32>,
pub last_attempt_result: Option<TaskAttemptResult>,
pub log_uri: Option<String>,
pub observed_generation: Option<i32>,
pub retried: Option<i32>,
pub start_time: Option<DateTime<Utc>>,
}
Expand description
TaskStatus represents the status of a task.
This type is not used in any activity, and only used as part of another schema.
Fields§
§completion_time: Option<DateTime<Utc>>
Optional. Represents time when the task was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
conditions: Option<Vec<GoogleCloudRunV1Condition>>
Optional. Conditions communicate information about ongoing/complete reconciliation processes that bring the “spec” inline with the observed state of the world. Task-specific conditions include: * Started
: True
when the task has started to execute. * Completed
: True
when the task has succeeded. False
when the task has failed.
index: Option<i32>
Required. Index of the task, unique per execution, and beginning at 0.
last_attempt_result: Option<TaskAttemptResult>
Optional. Result of the last attempt of this task.
log_uri: Option<String>
Optional. URI where logs for this task can be found in Cloud Console.
observed_generation: Option<i32>
Optional. The ‘generation’ of the task that was last processed by the controller.
retried: Option<i32>
Optional. The number of times this task was retried. Instances are retried when they fail up to the maxRetries limit.
start_time: Option<DateTime<Utc>>
Optional. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.
Trait Implementations§
Source§impl Clone for TaskStatus
impl Clone for TaskStatus
Source§fn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TaskStatus
impl Debug for TaskStatus
Source§impl Default for TaskStatus
impl Default for TaskStatus
Source§fn default() -> TaskStatus
fn default() -> TaskStatus
Source§impl<'de> Deserialize<'de> for TaskStatus
impl<'de> Deserialize<'de> for TaskStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for TaskStatus
impl Serialize for TaskStatus
impl Part for TaskStatus
Auto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnwindSafe for TaskStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more