pub struct UpdateJobRetriesRequest<T: UpdateJobRetriesRequestState> { /* private fields */ }Expand description
Request to update the number of retries for a job
This struct represents a request to update the number of retries for a job in Zeebe. It uses a builder pattern with different states to ensure that the job key and retries are set before sending the request.
§Examples
ⓘ
client
.update_job_retries()
.with_job_key(123456)
.with_retries(1)
.send()
.await?;Implementations§
Source§impl UpdateJobRetriesRequest<Initial>
impl UpdateJobRetriesRequest<Initial>
Sourcepub fn with_job_key(self, job_key: i64) -> UpdateJobRetriesRequest<WithKey>
pub fn with_job_key(self, job_key: i64) -> UpdateJobRetriesRequest<WithKey>
Source§impl UpdateJobRetriesRequest<WithKey>
impl UpdateJobRetriesRequest<WithKey>
Sourcepub fn with_retries(self, retries: i32) -> UpdateJobRetriesRequest<WithRetries>
pub fn with_retries(self, retries: i32) -> UpdateJobRetriesRequest<WithRetries>
Source§impl UpdateJobRetriesRequest<WithRetries>
impl UpdateJobRetriesRequest<WithRetries>
Sourcepub async fn send(self) -> Result<UpdateJobRetriesResponse, ClientError>
pub async fn send(self) -> Result<UpdateJobRetriesResponse, ClientError>
Sends the job retries update request to Zeebe.
§Returns
A Result containing the UpdateJobRetriesResponse if successful, or a ClientError if there was an error
Sourcepub fn with_operation_reference(self, operation_reference: u64) -> Self
pub fn with_operation_reference(self, operation_reference: u64) -> Self
Trait Implementations§
Source§impl<T: Clone + UpdateJobRetriesRequestState> Clone for UpdateJobRetriesRequest<T>
impl<T: Clone + UpdateJobRetriesRequestState> Clone for UpdateJobRetriesRequest<T>
Source§fn clone(&self) -> UpdateJobRetriesRequest<T>
fn clone(&self) -> UpdateJobRetriesRequest<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for UpdateJobRetriesRequest<T>
impl<T> !RefUnwindSafe for UpdateJobRetriesRequest<T>
impl<T> Send for UpdateJobRetriesRequest<T>where
T: Send,
impl<T> Sync for UpdateJobRetriesRequest<T>where
T: Sync,
impl<T> Unpin for UpdateJobRetriesRequest<T>where
T: Unpin,
impl<T> !UnwindSafe for UpdateJobRetriesRequest<T>
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