melvin_ob/http_handler/http_response/
modify_slot.rs

1use crate::http_handler::http_response::response_common::SerdeJSONBodyHTTPResponseType;
2use chrono::{DateTime, Utc};
3
4/// Response type for the /slots endpoint -> PUT
5#[derive(serde::Deserialize, Debug)]
6pub(crate) struct ModifySlotResponse {
7    /// The id of the selected Communication Slot
8    id: usize,
9    /// The start time of the slot as a UTC Timestamp
10    start: DateTime<Utc>,
11    /// The end time of the slot as a UTC Timestamp
12    end: DateTime<Utc>,
13    /// Whether the slot is currently booked or not
14    enabled: bool,
15}
16
17impl SerdeJSONBodyHTTPResponseType for ModifySlotResponse {}