DeleteWithResponse

Trait DeleteWithResponse 

Source
pub trait DeleteWithResponse<TIdt, TResponse>
where TIdt: Serialize + Sync + Send, TResponse: Serialize + DeserializeOwned + Sync + Send, Self: WithApiClient + WithBasePath + Sync,
{ // Provided method fn delete( &self, deletes: &[TIdt], ) -> impl Future<Output = Result<ItemsVec<TResponse>>> + Send { ... } }
Expand description

Trait for resource types that can be deleted, and where the delete request has a non-empty response.

Provided Methods§

Source

fn delete( &self, deletes: &[TIdt], ) -> impl Future<Output = Result<ItemsVec<TResponse>>> + Send

Delete a list of resources.

§Arguments
  • deletes - IDs of items to delete.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§