diff --git a/src/api.rs b/src/api.rs index 3af847b..bd38f53 100644 --- a/src/api.rs +++ b/src/api.rs @@ -80,7 +80,7 @@ pub struct ModInfo { pub source_url: Option, pub wiki_url: Option, pub discord_url: Option, - pub donation_urls: Vec, + pub donation_urls: Vec, } #[derive(Deserialize, Debug)] @@ -90,6 +90,13 @@ pub struct License { pub url: String, } +#[derive(Deserialize, Debug)] +pub struct DonationLink { + pub id: String, + pub platform: String, + pub url: String, +} + #[derive(Deserialize, Debug)] pub struct ModVersion { pub id: String, // version id @@ -105,7 +112,7 @@ pub struct ModVersion { pub downloads: isize, pub version_type: String, // TODO {alpha | beta | release} pub files: Vec, - pub dependencies: Vec, // TODO dependency wrangling, thank you modrinth, very cool + // pub dependencies: Vec, // TODO dependency wrangling, thank you modrinth, very cool pub game_versions: Vec, pub loaders: Vec, }