Fixed build issues
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
mod managers {
|
||||
use crate::models;
|
||||
|
||||
// mod managers {
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct ActionManager {
|
||||
action: String,
|
||||
flags: Vec<models::Flags>,
|
||||
params: Vec<String>,
|
||||
param_count: i32,
|
||||
pub action: String,
|
||||
pub flags: Vec<models::flags::Flags>,
|
||||
pub params: Vec<String>,
|
||||
pub param_count: i32,
|
||||
}
|
||||
|
||||
impl ActionManager {
|
||||
// TODO: Implement
|
||||
pub fn retrieve_icarus_action(&self) -> models::IcarusAction {
|
||||
return models::IcarusAction {
|
||||
pub fn retrieve_icarus_action(&self) -> models::icarus_action::IcarusAction {
|
||||
return models::icarus_action::IcarusAction {
|
||||
action: String::from(""),
|
||||
flags: Vec::new(),
|
||||
};
|
||||
@@ -52,4 +54,4 @@ impl ActionManager {
|
||||
return Vec::new();
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
@@ -2,15 +2,17 @@ use std::collections::HashMap;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
mod managers {
|
||||
use crate::models;
|
||||
|
||||
// mod managers {
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct CommitManager {
|
||||
action: String,
|
||||
flags: Vec<models::Flags>,
|
||||
params: Vec<String>,
|
||||
param_count: i32,
|
||||
ica_action: models::IcarusAction,
|
||||
pub action: String,
|
||||
pub flags: Vec<models::flags::Flags>,
|
||||
pub params: Vec<String>,
|
||||
pub param_count: i32,
|
||||
pub ica_action: models::icarus_action::IcarusAction,
|
||||
}
|
||||
|
||||
pub struct Album {
|
||||
@@ -20,7 +22,7 @@ pub struct Album {
|
||||
pub year: i32,
|
||||
pub track_count: i32,
|
||||
pub disc_count: i32,
|
||||
pub songs: Vec<models::Song>,
|
||||
pub songs: Vec<models::song::Song>,
|
||||
|
||||
}
|
||||
|
||||
@@ -53,7 +55,7 @@ impl CommitManager {
|
||||
}
|
||||
|
||||
// TODO: Implement
|
||||
fn parse_token(&self, api: &models::API) {
|
||||
fn parse_token(&self, api: &models::api::API) {
|
||||
}
|
||||
// TODO: Implement
|
||||
fn upload_song_with_metadata(&self) {
|
||||
@@ -66,17 +68,17 @@ impl CommitManager {
|
||||
fn multi_target_upload(&self, sourcepath: &String) {
|
||||
}
|
||||
// TODO: Implement
|
||||
fn initialize_disc_and_track(&self, song: &Song) {
|
||||
fn initialize_disc_and_track(&self, song: &models::song::Song) {
|
||||
}
|
||||
// TODO: Implement
|
||||
fn parse_disc_and_track(&self, song: &Song, track_id: &String) {
|
||||
fn parse_disc_and_track(&self, song: &models::song::Song, track_id: &String) {
|
||||
}
|
||||
// TODO: Implement
|
||||
fn check_for_no_confirm(&self) -> bool {
|
||||
return false;
|
||||
}
|
||||
// TODO: Implement
|
||||
fn retrieve_metadata(&self, path: &String) -> models::Album {
|
||||
fn retrieve_metadata(&self, path: &String) -> Album {
|
||||
return Album {
|
||||
title: String::from(""),
|
||||
album_artist: String::from(""),
|
||||
@@ -92,4 +94,4 @@ impl CommitManager {
|
||||
return String::from("");
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
pub mod action_managers;
|
||||
pub mod commit_manager;
|
||||
pub mod user_manager;
|
||||
@@ -1,17 +1,19 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
mod managers {
|
||||
use crate::models;
|
||||
|
||||
// mod managers {
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct UserManager {
|
||||
user: models::User,
|
||||
ica_action: models::IcarusAction,
|
||||
user: models::user::User,
|
||||
ica_action: models::icarus_action::IcarusAction,
|
||||
}
|
||||
|
||||
impl UserManager {
|
||||
// TODO: Implement
|
||||
pub fn retrieve_user(&self) -> models::User {
|
||||
return models::User {
|
||||
pub fn retrieve_user(&self) -> models::user::User {
|
||||
return models::user::User {
|
||||
username: String::from(""),
|
||||
password: String::from(""),
|
||||
};
|
||||
@@ -21,4 +23,4 @@ impl UserManager {
|
||||
fn parse_user_from_actions(&self) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user