Skip to main content

DeleteNoStream

Trait DeleteNoStream 

Source
pub trait DeleteNoStream:
    Delete
    + Send
    + Sync {
    type Response: DeserializeOwned + FromStr<Err = OapiError> + Send + Sync;

    // Provided methods
    fn get_response_string(
        &self,
        client: &Client,
        base_url: &str,
        key: &str,
    ) -> impl Future<Output = Result<String, OapiError>> + Send + Sync { ... }
    fn get_response(
        &self,
        client: &Client,
        base_url: &str,
        key: &str,
    ) -> impl Future<Output = Result<Self::Response, OapiError>> + Send + Sync { ... }
}

Required Associated Types§

Provided Methods§

Source

fn get_response_string( &self, client: &Client, base_url: &str, key: &str, ) -> impl Future<Output = Result<String, OapiError>> + Send + Sync

Sends a DELETE request and returns the raw response body.

The client is supplied by the caller; see crate::rest::default_client for a sensible default.

Source

fn get_response( &self, client: &Client, base_url: &str, key: &str, ) -> impl Future<Output = Result<Self::Response, OapiError>> + Send + Sync

Sends a DELETE request and deserializes the response.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§