melvin_ob/http_handler/http_response/
available_slots.rs

1use crate::http_handler::{
2    common::CommunicationSlot, http_response::response_common::SerdeJSONBodyHTTPResponseType,
3};
4
5/// Response type for the /slots endpoint -> GET
6#[derive(serde::Deserialize, Debug)]
7pub(crate) struct AvailableSlotsResponse {
8    /// Number of already used communication slots
9    communication_slots_used: usize,
10    /// `Vec` of remaining `CommunicationSlot` objects
11    slots: Vec<CommunicationSlot>,
12}
13
14impl SerdeJSONBodyHTTPResponseType for AvailableSlotsResponse {}