1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
///DTO for the endpoints returning multiple formats
#[derive(Serialize, Deserialize, Debug)]
#[serde(deny_unknown_fields, untagged)]
pub(crate) enum FormatDto {
    Error {
        status: Option<String>,
        error: String,
    },
    Formats {
        formats: Vec<String>,
    },
}