melvin_ob/http_handler/http_request/
available_slots_get.rs1use super::available_slots::AvailableSlotsResponse;
2use super::request_common::{HTTPRequestMethod, HTTPRequestType, NoBodyHTTPRequestType};
3
4#[derive(Debug)]
6pub struct AvailableSlotsRequest {}
7
8impl NoBodyHTTPRequestType for AvailableSlotsRequest {}
9
10impl HTTPRequestType for AvailableSlotsRequest {
11 type Response = AvailableSlotsResponse;
13 fn endpoint(&self) -> &'static str { "/slots" }
15 fn request_method(&self) -> HTTPRequestMethod { HTTPRequestMethod::Get }
17}