Skip to main content

mlb_api/requests/meta/
platforms.rs

1use serde::Deserialize;
2
3id!(PlatformId { platformCode: String });
4
5#[derive(Debug, Deserialize, Clone)]
6pub struct Platform {
7	#[serde(rename = "platformDescription")]
8	pub name: String,
9	#[serde(flatten)]
10	pub id: PlatformId,
11}
12
13id_only_eq_impl!(Platform, id);
14meta_kind_impl!("platforms" => Platform);
15tiered_request_entry_cache_impl!(Platform.id: PlatformId);
16test_impl!(Platform);