pub struct DeleteResourceRequest<T> { /* private fields */ }Expand description
Request to delete a deployed resource in Zeebe
§Examples
ⓘ
let response = client
.delete_resource()
.with_resource_key(12345)
.send()
.await?;§Errors
Sending a delete request may result in the following errors:
NOT_FOUND: No resource exists with the given key.
§Notes
The delete resource operation is fire-and-forget, meaning there is no detailed response.
Implementations§
Source§impl DeleteResourceRequest<Initial>
impl DeleteResourceRequest<Initial>
Sourcepub fn with_resource_key(
self,
resource_key: i64,
) -> DeleteResourceRequest<WithKey>
pub fn with_resource_key( self, resource_key: i64, ) -> DeleteResourceRequest<WithKey>
Sets the key of the resource to delete
§Arguments
resource_key- Key of process, decision, or form to delete
Source§impl DeleteResourceRequest<WithKey>
impl DeleteResourceRequest<WithKey>
Sourcepub async fn send(self) -> Result<DeleteResourceResponse, ClientError>
pub async fn send(self) -> Result<DeleteResourceResponse, ClientError>
Sends the delete resource request to the gateway
§Errors
- NOT_FOUND: No resource exists with given key
Sourcepub fn with_operation_reference(self, operation_reference: u64) -> Self
pub fn with_operation_reference(self, operation_reference: u64) -> Self
Sets a reference ID to correlate this operation with other events
§Arguments
operation_reference- Unique identifier for correlation
Trait Implementations§
Source§impl<T: Clone> Clone for DeleteResourceRequest<T>
impl<T: Clone> Clone for DeleteResourceRequest<T>
Source§fn clone(&self) -> DeleteResourceRequest<T>
fn clone(&self) -> DeleteResourceRequest<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 DeleteResourceRequest<T>
impl<T> !RefUnwindSafe for DeleteResourceRequest<T>
impl<T> Send for DeleteResourceRequest<T>where
T: Send,
impl<T> Sync for DeleteResourceRequest<T>where
T: Sync,
impl<T> Unpin for DeleteResourceRequest<T>where
T: Unpin,
impl<T> !UnwindSafe for DeleteResourceRequest<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