From ecc4743fdec43eb578e9c35bb008c68909f1517e Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 17:32:19 +0200 Subject: better error handling --- src/data/projectinfo.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/data/projectinfo.rs (limited to 'src/data/projectinfo.rs') diff --git a/src/data/projectinfo.rs b/src/data/projectinfo.rs new file mode 100644 index 0000000..9807867 --- /dev/null +++ b/src/data/projectinfo.rs @@ -0,0 +1,12 @@ +use crate::apis::modrinth::Version; + +#[derive(Debug, Clone)] +pub struct ProjectInfo { + pub mod_id: String, + pub slug: String, + pub title: String, + pub current_version: Option, + pub applicable_versions: Vec, + pub download_link: String, + pub set_version: bool, +} -- cgit v1.2.3