pub struct Job(_);
Expand description
An activate Zeebe job that is ready to be worked on by a worker.
Implementations
sourceimpl Job
impl Job
sourcepub fn process_instance_key(&self) -> i64
pub fn process_instance_key(&self) -> i64
the job’s process instance key
sourcepub fn bpmn_process_id(&self) -> &str
pub fn bpmn_process_id(&self) -> &str
the bpmn process ID of the job process definition
sourcepub fn process_definition_version(&self) -> i32
pub fn process_definition_version(&self) -> i32
the version of the job process definition
sourcepub fn process_definition_key(&self) -> i64
pub fn process_definition_key(&self) -> i64
the key of the job process definition
sourcepub fn element_id(&self) -> &str
pub fn element_id(&self) -> &str
the associated task element ID
sourcepub fn element_instance_key(&self) -> i64
pub fn element_instance_key(&self) -> i64
the unique key identifying the associated task, unique within the scope of the process instance
sourcepub fn custom_headers(&self) -> &str
pub fn custom_headers(&self) -> &str
a set of custom headers defined during modelling; returned as a serialized JSON document
sourcepub fn retries(&self) -> i32
pub fn retries(&self) -> i32
the amount of retries left to this job (should always be positive)
sourcepub fn deadline(&self) -> i64
pub fn deadline(&self) -> i64
when the job can be activated again, sent as a UNIX epoch timestamp
sourcepub fn variables_str(&self) -> &str
pub fn variables_str(&self) -> &str
Serialized JSON document, computed at activation time, consisting of all visible variables to the task scope
sourcepub fn variables(&self) -> Value
pub fn variables(&self) -> Value
JSON document, computed at activation time, consisting of all visible variables to the task scope
sourcepub fn variables_as<'a, T: Deserialize<'a>>(&'a self) -> Option<T>
pub fn variables_as<'a, T: Deserialize<'a>>(&'a self) -> Option<T>
Deserialize encoded json variables as a given type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more