#[non_exhaustive]pub struct JobEvent {
pub message: String,
pub job_id: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: State,
pub retries: i32,
pub type: Type,
pub service: Service,
pub service_job: String,
pub execution_trigger: ExecutionTrigger,
/* private fields */
}Expand description
The payload associated with Job logs that contains events describing jobs that have run within a Lake.
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.message: StringThe log message.
job_id: StringThe unique id identifying the job.
start_time: Option<Timestamp>The time when the job started running.
end_time: Option<Timestamp>The time when the job ended running.
state: StateThe job state on completion.
retries: i32The number of retries.
type: TypeThe type of the job.
service: ServiceThe service used to execute the job.
service_job: StringThe reference to the job within the service.
execution_trigger: ExecutionTriggerJob execution trigger.
Implementations§
Source§impl JobEvent
impl JobEvent
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
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_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_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_retries<T: Into<i32>>(self, v: T) -> Self
pub fn set_retries<T: Into<i32>>(self, v: T) -> Self
Sets the value of retries.
Sourcepub fn set_service<T: Into<Service>>(self, v: T) -> Self
pub fn set_service<T: Into<Service>>(self, v: T) -> Self
Sets the value of service.
Sourcepub fn set_service_job<T: Into<String>>(self, v: T) -> Self
pub fn set_service_job<T: Into<String>>(self, v: T) -> Self
Sets the value of service_job.
Sourcepub fn set_execution_trigger<T: Into<ExecutionTrigger>>(self, v: T) -> Self
pub fn set_execution_trigger<T: Into<ExecutionTrigger>>(self, v: T) -> Self
Sets the value of execution_trigger.
Trait Implementations§
impl StructuralPartialEq for JobEvent
Auto Trait Implementations§
impl Freeze for JobEvent
impl RefUnwindSafe for JobEvent
impl Send for JobEvent
impl Sync for JobEvent
impl Unpin for JobEvent
impl UnwindSafe for JobEvent
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