#[non_exhaustive]pub struct JobStatus {
pub state: State,
pub details: String,
pub state_start_time: Option<Timestamp>,
pub substate: Substate,
/* private fields */
}Expand description
Dataproc job status.
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.state: StateOutput only. A state message specifying the overall job state.
details: StringOptional. Output only. Job state details, such as an error
description if the state is ERROR.
state_start_time: Option<Timestamp>Output only. The time when this state was entered.
substate: SubstateOutput only. Additional state information, which includes status reported by the agent.
Implementations§
Source§impl JobStatus
impl JobStatus
pub fn new() -> Self
Sourcepub fn set_details<T: Into<String>>(self, v: T) -> Self
pub fn set_details<T: Into<String>>(self, v: T) -> Self
Sets the value of details.
Sourcepub fn set_state_start_time<T>(self, v: T) -> Self
pub fn set_state_start_time<T>(self, v: T) -> Self
Sets the value of state_start_time.
Sourcepub fn set_or_clear_state_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of state_start_time.
Sourcepub fn set_substate<T: Into<Substate>>(self, v: T) -> Self
pub fn set_substate<T: Into<Substate>>(self, v: T) -> Self
Sets the value of substate.
Trait Implementations§
impl StructuralPartialEq for JobStatus
Auto Trait Implementations§
impl Freeze for JobStatus
impl RefUnwindSafe for JobStatus
impl Send for JobStatus
impl Sync for JobStatus
impl Unpin for JobStatus
impl UnwindSafe for JobStatus
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