melvin_ob/http_handler/http_response/
delete_objective.rs1use crate::http_handler::http_response::response_common::{
2 HTTPResponseType, JSONBodyHTTPResponseType, ResponseError,
3};
4
5#[cfg(debug_assertions)]
7pub(crate) struct DeleteObjectiveResponse {}
8
9impl JSONBodyHTTPResponseType for DeleteObjectiveResponse {}
10
11impl HTTPResponseType for DeleteObjectiveResponse {
12 type ParsedResponseType = isize;
14
15 async fn read_response(
17 response: reqwest::Response,
18 ) -> Result<Self::ParsedResponseType, ResponseError> {
19 let resp = Self::unwrap_return_code(response).await?;
20 Self::parse_json_body(resp).await
21 }
22}