Fixed build issues

This commit is contained in:
kdeng00
2024-04-07 22:41:46 -04:00
parent 0e76c6d4c7
commit 2377178492
19 changed files with 89 additions and 62 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};
mod models {
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct API {
@@ -8,4 +8,4 @@ pub struct API {
pub endpoint: String,
pub version: String,
}
}
// }
+2 -2
View File
@@ -1,9 +1,9 @@
use serde::{Deserialize, Serialize};
mod models {
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct Flags {
pub flag: String,
pub value: String,
}
}
// }
+5 -3
View File
@@ -1,11 +1,13 @@
use serde::{Deserialize, Serialize};
mod models {
use crate::models;
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct IcarusAction {
pub action: String,
pub flags: Vec<models::Flags>,
pub flags: Vec<models::flags::Flags>,
}
impl IcarusAction {
@@ -18,4 +20,4 @@ impl IcarusAction {
pub fn print_action_and_flags(&self) {
}
}
}
// }
+7
View File
@@ -0,0 +1,7 @@
pub mod api;
pub mod flags;
pub mod icarus_action;
pub mod song;
pub mod token;
pub mod upload_form;
pub mod user;
+3 -3
View File
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};
mod models {
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct Song {
@@ -9,7 +9,7 @@ pub struct Song {
pub artist: String,
pub album: String,
pub genre: String,
pub year: int,
pub year: i32,
pub duration: f64,
pub track: i32,
pub disc: i32,
@@ -48,4 +48,4 @@ pub struct CoverArt {
pub title: String,
pub path: String,
}
}
// }
+2 -2
View File
@@ -1,6 +1,6 @@
use serde::{Deserialize, Serialize};
mod models {
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct Token {
@@ -8,4 +8,4 @@ pub struct Token {
pub token_type: String,
pub expiration: i32,
}
}
// }
+2 -2
View File
@@ -1,10 +1,10 @@
use serde::{Deserialize, Serialize};
mod models {
// mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct UploadForm {
pub url: String,
pub filepath: String,
}
}
// }
+8 -9
View File
@@ -1,10 +1,9 @@
use serde::{Deserialize, Serialize};
// mod models {
use serde::{Deserialize, Serialize};
mod models {
#[derive(Debug, Deserialize, Serialize)]
pub struct User {
pub username: String,
pub password: String,
}
}
#[derive(Debug, Deserialize, Serialize)]
pub struct User {
pub username: String,
pub password: String,
}
// }