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: UuidThe unique identifier of the job.
schedule_id: Option<Uuid>The schedule ID of the job.
created_at: SystemTimeThe time the job was created.
job_type_id: StringThe job type ID.
target_execution_time: SystemTimeThe target execution time of the job.
input_payload_json: StringThe input payload of the job.
timeout_policy: JobTimeoutPolicyTimeout policy for the job.
retry_policy: JobRetryPolicyRetry 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