summaryrefslogtreecommitdiff
path: root/src/apis/modrinth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/apis/modrinth.rs')
-rw-r--r--src/apis/modrinth.rs12
1 files changed, 6 insertions, 6 deletions
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;
4 4
5use crate::{Modloader, List}; 5use crate::{Modloader, List};
6 6
7#[derive(Debug, Deserialize)] 7#[derive(Debug, Deserialize, Clone)]
8pub struct Project { 8pub struct Project {
9 pub slug: String, 9 pub slug: String,
10 pub title: String, 10 pub title: String,
@@ -29,21 +29,21 @@ pub struct Project {
29 pub versions: Vec<String>, 29 pub versions: Vec<String>,
30} 30}
31 31
32#[derive(Debug, Deserialize)] 32#[derive(Debug, Deserialize, Clone)]
33pub struct License { 33pub struct License {
34 pub id: String, 34 pub id: String,
35 pub name: String, 35 pub name: String,
36 pub url: Option<String>, 36 pub url: Option<String>,
37} 37}
38 38
39#[derive(Debug, Deserialize)] 39#[derive(Debug, Deserialize, Clone)]
40pub struct ModeratorMessage { 40pub struct ModeratorMessage {
41 pub message: String, 41 pub message: String,
42 pub body: Option<String>, 42 pub body: Option<String>,
43} 43}
44 44
45#[allow(non_camel_case_types)] 45#[allow(non_camel_case_types)]
46#[derive(Debug, Deserialize)] 46#[derive(Debug, Deserialize, Clone)]
47pub enum Side { 47pub enum Side {
48 required, 48 required,
49 optional, 49 optional,
@@ -51,7 +51,7 @@ pub enum Side {
51} 51}
52 52
53#[allow(non_camel_case_types)] 53#[allow(non_camel_case_types)]
54#[derive(Debug, Deserialize)] 54#[derive(Debug, Deserialize, Clone)]
55pub enum Type { 55pub enum Type {
56 r#mod, 56 r#mod,
57 modpack, 57 modpack,
@@ -59,7 +59,7 @@ pub enum Type {
59} 59}
60 60
61#[allow(non_camel_case_types)] 61#[allow(non_camel_case_types)]
62#[derive(Debug, Deserialize)] 62#[derive(Debug, Deserialize, Clone)]
63pub enum Status { 63pub enum Status {
64 approved, 64 approved,
65 rejected, 65 rejected,