#[non_exhaustive]pub struct Attempt {
pub schedule_time: Option<Timestamp>,
pub dispatch_time: Option<Timestamp>,
pub response_time: Option<Timestamp>,
pub response_status: Option<Status>,
/* private fields */
}Expand description
The status of a task attempt.
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.schedule_time: Option<Timestamp>Output only. The time that this attempt was scheduled.
schedule_time will be truncated to the nearest microsecond.
dispatch_time: Option<Timestamp>Output only. The time that this attempt was dispatched.
dispatch_time will be truncated to the nearest microsecond.
response_time: Option<Timestamp>Output only. The time that this attempt response was received.
response_time will be truncated to the nearest microsecond.
response_status: Option<Status>Output only. The response from the worker for this attempt.
If response_time is unset, then the task has not been attempted or is
currently running and the response_status field is meaningless.
Implementations§
Source§impl Attempt
impl Attempt
pub fn new() -> Self
Sourcepub fn set_schedule_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_schedule_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of schedule_time.
Sourcepub fn set_dispatch_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_dispatch_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of dispatch_time.
Sourcepub fn set_response_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_response_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of response_time.
Sourcepub fn set_response_status<T: Into<Option<Status>>>(self, v: T) -> Self
pub fn set_response_status<T: Into<Option<Status>>>(self, v: T) -> Self
Sets the value of response_status.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attempt
impl<'de> Deserialize<'de> for Attempt
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Attempt
Auto Trait Implementations§
impl Freeze for Attempt
impl RefUnwindSafe for Attempt
impl Send for Attempt
impl Sync for Attempt
impl Unpin for Attempt
impl UnwindSafe for Attempt
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