#[non_exhaustive]pub struct BackgroundJobLogEntry {
pub id: String,
pub job_type: BackgroundJobType,
pub start_time: Option<Timestamp>,
pub finish_time: Option<Timestamp>,
pub completion_state: JobCompletionState,
pub completion_comment: String,
pub request_autocommit: bool,
pub job_details: Option<JobDetails>,
/* private fields */
}Expand description
Execution log of a background job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe background job log entry ID.
job_type: BackgroundJobTypeThe type of job that was executed.
start_time: Option<Timestamp>The timestamp when the background job was started.
finish_time: Option<Timestamp>The timestamp when the background job was finished.
completion_state: JobCompletionStateOutput only. Job completion state, i.e. the final state after the job completed.
completion_comment: StringOutput only. Job completion comment, such as how many entities were seeded, how many warnings were found during conversion, and similar information.
request_autocommit: boolOutput only. Whether the client requested the conversion workspace to be committed after a successful completion of the job.
job_details: Option<JobDetails>Implementations§
Source§impl BackgroundJobLogEntry
impl BackgroundJobLogEntry
pub fn new() -> Self
Sourcepub fn set_job_type<T: Into<BackgroundJobType>>(self, v: T) -> Self
pub fn set_job_type<T: Into<BackgroundJobType>>(self, v: T) -> Self
Sets the value of job_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.
Sourcepub fn set_finish_time<T>(self, v: T) -> Self
pub fn set_finish_time<T>(self, v: T) -> Self
Sets the value of finish_time.
Sourcepub fn set_or_clear_finish_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_finish_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of finish_time.
Sourcepub fn set_completion_state<T: Into<JobCompletionState>>(self, v: T) -> Self
pub fn set_completion_state<T: Into<JobCompletionState>>(self, v: T) -> Self
Sets the value of completion_state.
Sourcepub fn set_completion_comment<T: Into<String>>(self, v: T) -> Self
pub fn set_completion_comment<T: Into<String>>(self, v: T) -> Self
Sets the value of completion_comment.
Sourcepub fn set_request_autocommit<T: Into<bool>>(self, v: T) -> Self
pub fn set_request_autocommit<T: Into<bool>>(self, v: T) -> Self
Sets the value of request_autocommit.
Sourcepub fn set_job_details<T: Into<Option<JobDetails>>>(self, v: T) -> Self
pub fn set_job_details<T: Into<Option<JobDetails>>>(self, v: T) -> Self
Sets the value of job_details.
Note that all the setters affecting job_details are mutually
exclusive.
Sourcepub fn seed_job_details(&self) -> Option<&Box<SeedJobDetails>>
pub fn seed_job_details(&self) -> Option<&Box<SeedJobDetails>>
The value of job_details
if it holds a SeedJobDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_seed_job_details<T: Into<Box<SeedJobDetails>>>(self, v: T) -> Self
pub fn set_seed_job_details<T: Into<Box<SeedJobDetails>>>(self, v: T) -> Self
Sets the value of job_details
to hold a SeedJobDetails.
Note that all the setters affecting job_details are
mutually exclusive.
Sourcepub fn import_rules_job_details(&self) -> Option<&Box<ImportRulesJobDetails>>
pub fn import_rules_job_details(&self) -> Option<&Box<ImportRulesJobDetails>>
The value of job_details
if it holds a ImportRulesJobDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_import_rules_job_details<T: Into<Box<ImportRulesJobDetails>>>(
self,
v: T,
) -> Self
pub fn set_import_rules_job_details<T: Into<Box<ImportRulesJobDetails>>>( self, v: T, ) -> Self
Sets the value of job_details
to hold a ImportRulesJobDetails.
Note that all the setters affecting job_details are
mutually exclusive.
Sourcepub fn convert_job_details(&self) -> Option<&Box<ConvertJobDetails>>
pub fn convert_job_details(&self) -> Option<&Box<ConvertJobDetails>>
The value of job_details
if it holds a ConvertJobDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_convert_job_details<T: Into<Box<ConvertJobDetails>>>(
self,
v: T,
) -> Self
pub fn set_convert_job_details<T: Into<Box<ConvertJobDetails>>>( self, v: T, ) -> Self
Sets the value of job_details
to hold a ConvertJobDetails.
Note that all the setters affecting job_details are
mutually exclusive.
Sourcepub fn apply_job_details(&self) -> Option<&Box<ApplyJobDetails>>
pub fn apply_job_details(&self) -> Option<&Box<ApplyJobDetails>>
The value of job_details
if it holds a ApplyJobDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_apply_job_details<T: Into<Box<ApplyJobDetails>>>(self, v: T) -> Self
pub fn set_apply_job_details<T: Into<Box<ApplyJobDetails>>>(self, v: T) -> Self
Sets the value of job_details
to hold a ApplyJobDetails.
Note that all the setters affecting job_details are
mutually exclusive.
Trait Implementations§
Source§impl Clone for BackgroundJobLogEntry
impl Clone for BackgroundJobLogEntry
Source§fn clone(&self) -> BackgroundJobLogEntry
fn clone(&self) -> BackgroundJobLogEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more