#[non_exhaustive]pub struct JobMetadata {
pub job_id: String,
pub status: Option<JobStatus>,
pub operation_type: String,
pub start_time: Option<Timestamp>,
/* private fields */
}Expand description
Job 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.job_id: StringOutput only. The job id.
status: Option<JobStatus>Output only. Most recent job status.
operation_type: StringOutput only. Operation type.
start_time: Option<Timestamp>Output only. Job submission time.
Implementations§
Source§impl JobMetadata
impl JobMetadata
pub fn new() -> Self
Sourcepub fn set_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of job_id.
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
Sourcepub fn set_operation_type<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_type<T: Into<String>>(self, v: T) -> Self
Sets the value of operation_type.
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.
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.
Trait Implementations§
Source§impl Clone for JobMetadata
impl Clone for JobMetadata
Source§fn clone(&self) -> JobMetadata
fn clone(&self) -> JobMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobMetadata
impl Debug for JobMetadata
Source§impl Default for JobMetadata
impl Default for JobMetadata
Source§fn default() -> JobMetadata
fn default() -> JobMetadata
Returns the “default value” for a type. Read more
Source§impl Message for JobMetadata
impl Message for JobMetadata
Source§impl PartialEq for JobMetadata
impl PartialEq for JobMetadata
impl StructuralPartialEq for JobMetadata
Auto Trait Implementations§
impl Freeze for JobMetadata
impl RefUnwindSafe for JobMetadata
impl Send for JobMetadata
impl Sync for JobMetadata
impl Unpin for JobMetadata
impl UnwindSafe for JobMetadata
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