use serde::Deserialize; use serde_aux::field_attributes::deserialize_number_from_string; #[derive(Debug, Deserialize, Default, Clone)] pub struct SteamApiResponse { pub response: Response, } #[derive(Debug, Deserialize, Default, Clone)] pub struct Response { #[serde(rename = "publishedfiledetails")] pub published_file_details: Vec, } #[derive(Deserialize, Debug, Default, Clone)] pub struct WorkshopContent { pub title: Option, #[serde( rename = "publishedfileid", deserialize_with = "deserialize_number_from_string" )] pub published_file_id: u64, pub time_updated: Option, pub preview_url: Option, // This is added IF we plan to use discord (by parsing html manually) #[serde(skip_deserializing)] pub changelog: String, }