From c00673fd0e01d1438798dbb1635a761a76a2b559 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 20 Nov 2022 23:54:20 +0100 Subject: extracted filedownload to fn; fixed some tests; added direct-dl to update --- src/apis/modrinth.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/apis') diff --git a/src/apis/modrinth.rs b/src/apis/modrinth.rs index ec8d203..c99cfbf 100644 --- a/src/apis/modrinth.rs +++ b/src/apis/modrinth.rs @@ -4,7 +4,7 @@ use serde::Deserialize; use crate::{Modloader, List}; -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub struct Project { pub slug: String, pub title: String, @@ -29,21 +29,21 @@ pub struct Project { pub versions: Vec, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub struct License { pub id: String, pub name: String, pub url: Option, } -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub struct ModeratorMessage { pub message: String, pub body: Option, } #[allow(non_camel_case_types)] -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub enum Side { required, optional, @@ -51,7 +51,7 @@ pub enum Side { } #[allow(non_camel_case_types)] -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub enum Type { r#mod, modpack, @@ -59,7 +59,7 @@ pub enum Type { } #[allow(non_camel_case_types)] -#[derive(Debug, Deserialize)] +#[derive(Debug, Deserialize, Clone)] pub enum Status { approved, rejected, -- cgit v1.2.3