pub struct NewJob {
pub id: Uuid,
pub schedule_id: Option<Uuid>,
pub created_at: SystemTime,
pub job_type_id: String,
pub target_execution_time: SystemTime,
pub input_payload_json: String,
pub timeout_policy: JobTimeoutPolicy,
pub retry_policy: JobRetryPolicy,
pub labels: IndexMap<String, String>,
pub metadata_json: Option<String>,
}
Expand description
Essential data for a job.
Fields§
§id: Uuid
The unique identifier of the job.
schedule_id: Option<Uuid>
The schedule ID of the job.
created_at: SystemTime
The time the job was created.
job_type_id: String
The job type ID.
target_execution_time: SystemTime
The target execution time of the job.
input_payload_json: String
The input payload of the job.
timeout_policy: JobTimeoutPolicy
Timeout policy for the job.
retry_policy: JobRetryPolicy
Retry policy for the job.
labels: IndexMap<String, String>
Labels of the job.
metadata_json: Option<String>
Arbitrary metadata in JSON format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewJob
impl RefUnwindSafe for NewJob
impl Send for NewJob
impl Sync for NewJob
impl Unpin for NewJob
impl UnwindSafe for NewJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request