removed usless derives
This commit is contained in:
@@ -8,7 +8,7 @@ use serde::Deserialize;
|
|||||||
use crate::{types::link::Link, utils::walk_all_files};
|
use crate::{types::link::Link, utils::walk_all_files};
|
||||||
|
|
||||||
/// Available game
|
/// Available game
|
||||||
#[derive(Debug, Clone, Deserialize, PartialEq)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct Game {
|
pub struct Game {
|
||||||
install_location: PathBuf,
|
install_location: PathBuf,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
use crate::types::{link::Link, mod_file::ModFile};
|
use crate::types::{link::Link, mod_file::ModFile};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
|
||||||
pub struct InstalledMod {
|
pub struct InstalledMod {
|
||||||
id: String,
|
id: String,
|
||||||
files: Vec<Link>,
|
files: Vec<Link>,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
use crate::types::mod_file::ModFile;
|
use crate::types::mod_file::ModFile;
|
||||||
|
|
||||||
/// A link between a file from a mod and a destination in a ModdedInstance
|
/// A link between a file from a mod and a destination in a ModdedInstance
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
|
||||||
#[serde(from = "(PathBuf, PathBuf)", into = "(PathBuf,PathBuf)")]
|
#[serde(from = "(PathBuf, PathBuf)", into = "(PathBuf,PathBuf)")]
|
||||||
pub struct Link {
|
pub struct Link {
|
||||||
src: PathBuf,
|
src: PathBuf,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
|
|||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
/// Config for an available mod
|
/// Config for an available mod
|
||||||
#[derive(Debug, Clone, Deserialize, PartialEq)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct ModConfig {
|
pub struct ModConfig {
|
||||||
/// ID of the mod
|
/// ID of the mod
|
||||||
id: String,
|
id: String,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use crate::{
|
|||||||
utils::walk_all_files,
|
utils::walk_all_files,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct ModFile {
|
pub struct ModFile {
|
||||||
/// Relative path in the mod
|
/// Relative path in the mod
|
||||||
src: PathBuf,
|
src: PathBuf,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
use crate::types::{ConfigReadWriteError, installed_mod::InstalledMod, link::Link};
|
use crate::types::{ConfigReadWriteError, installed_mod::InstalledMod, link::Link};
|
||||||
|
|
||||||
/// An modded game with all plugins and files
|
/// An modded game with all plugins and files
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub struct ModdedInstance {
|
pub struct ModdedInstance {
|
||||||
name: String,
|
name: String,
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use serde::Deserialize;
|
|||||||
|
|
||||||
use crate::types::{ConfigReadWriteError, ModConfig, game::Game, modded_instance::ModdedInstance};
|
use crate::types::{ConfigReadWriteError, ModConfig, game::Game, modded_instance::ModdedInstance};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, PartialEq)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct RootConfig {
|
pub struct RootConfig {
|
||||||
/// Available games
|
/// Available games
|
||||||
games: Vec<Game>,
|
games: Vec<Game>,
|
||||||
@@ -62,7 +62,7 @@ impl RootConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, PartialEq)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct InstancePointer {
|
pub struct InstancePointer {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub path: PathBuf,
|
pub path: PathBuf,
|
||||||
|
|||||||
Reference in New Issue
Block a user