Something went wrong. Try again.
Project Zomboid workshop update cli checker, designed to be used in bash scripts (old and ugly code)
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930use 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<WorkshopContent>,}
#[derive(Deserialize, Debug, Default, Clone)]pub struct WorkshopContent { pub title: Option<String>, #[serde( rename = "publishedfileid", deserialize_with = "deserialize_number_from_string" )] pub published_file_id: u64, pub time_updated: Option<u64>, pub preview_url: Option<String>,
// This is added IF we plan to use discord (by parsing html manually) #[serde(skip_deserializing)] pub changelog: String,}