melvin_ob/http_handler/http_response/
objective_list.rs1use crate::http_handler::{
2 common::{BeaconObjective, ImageObjective},
3 http_response::response_common::SerdeJSONBodyHTTPResponseType,
4};
5
6#[derive(serde::Deserialize, Debug)]
8pub(crate) struct ObjectiveListResponse {
9 #[serde(rename = "zoned_objectives")]
11 img_objectives: Vec<ImageObjective>,
12 beacon_objectives: Vec<BeaconObjective>,
14}
15
16impl SerdeJSONBodyHTTPResponseType for ObjectiveListResponse {}
17
18impl ObjectiveListResponse {
19 pub(crate) fn img_objectives(&self) -> &Vec<ImageObjective> { &self.img_objectives }
21 pub(crate) fn beacon_objectives(&self) -> &Vec<BeaconObjective> { &self.beacon_objectives }
23}