pub struct ResolveIncidentRequest<T: ResolveIncidentRequestState> { /* private fields */ }Expand description
Request builder for resolving incidents in Zeebe.
This simply marks the incident as resolved. Most likely a call to UpdateJobRetries or SetVariables will be necessary to actually resolve the underlying problem before calling this.
§Examples
ⓘ
client
.resolve_incident()
.with_incident_key(123456)
.send()
.await?;Implementations§
Source§impl ResolveIncidentRequest<Initial>
impl ResolveIncidentRequest<Initial>
Sourcepub fn with_incident_key(
self,
incident_key: i64,
) -> ResolveIncidentRequest<WithKey>
pub fn with_incident_key( self, incident_key: i64, ) -> ResolveIncidentRequest<WithKey>
Source§impl ResolveIncidentRequest<WithKey>
impl ResolveIncidentRequest<WithKey>
Sourcepub async fn send(self) -> Result<ResolveIncidentResponse, ClientError>
pub async fn send(self) -> Result<ResolveIncidentResponse, ClientError>
Sourcepub fn with_operation_reference(self, operation_reference: u64) -> Self
pub fn with_operation_reference(self, operation_reference: u64) -> Self
Sets a reference key that will be included in all records resulting from this operation
This is an optional identifier that can be used to track the operation across the system.
§Arguments
operation_reference- The reference key to set
§Returns
The updated ResolveIncidentRequest with the operation reference set
Trait Implementations§
Source§impl<T: Clone + ResolveIncidentRequestState> Clone for ResolveIncidentRequest<T>
impl<T: Clone + ResolveIncidentRequestState> Clone for ResolveIncidentRequest<T>
Source§fn clone(&self) -> ResolveIncidentRequest<T>
fn clone(&self) -> ResolveIncidentRequest<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 ResolveIncidentRequest<T>
impl<T> !RefUnwindSafe for ResolveIncidentRequest<T>
impl<T> Send for ResolveIncidentRequest<T>where
T: Send,
impl<T> Sync for ResolveIncidentRequest<T>where
T: Sync,
impl<T> Unpin for ResolveIncidentRequest<T>where
T: Unpin,
impl<T> !UnwindSafe for ResolveIncidentRequest<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