Trait limiting_factor::api::replies::ApiDeleteResponse[][src]

pub trait ApiDeleteResponse<T> {
    fn into_delete_json_response(self) -> ApiJsonResponse<()>;
}
Expand description

This trait allows to consume an object into an HTTP response.

This response is a odd case for DELETE queries, which return a scalar with the rows deleted count value, or an error.

Required methods

Consumes the value and creates a JSON or a Status result response.

Implementations on Foreign Types

Implementors