mtgapi-client 0.2.0

API bindings for www.magicthegathering.io
Documentation
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>,
    },
}