melvin_ob/http_handler/http_request/
reset_get.rs

1use super::request_common::{HTTPRequestMethod, HTTPRequestType, NoBodyHTTPRequestType};
2use super::reset;
3
4/// Request type for the /reset endpoint.
5#[derive(Debug)]
6#[cfg(debug_assertions)]
7pub struct ResetRequest {}
8
9impl NoBodyHTTPRequestType for ResetRequest {}
10
11impl HTTPRequestType for ResetRequest {
12    /// Type of the expected response.
13    type Response = reset::ResetResponse;
14    /// `str` object representing the specific endpoint.
15    fn endpoint(&self) -> &'static str { "/reset" }
16    /// The corresponding HTTP Request Method.
17    fn request_method(&self) -> HTTPRequestMethod { HTTPRequestMethod::Get }
18}