the great refactor
This commit is contained in:
33
src/types.rs
Normal file
33
src/types.rs
Normal file
@@ -0,0 +1,33 @@
|
||||
use thiserror::Error;
|
||||
|
||||
mod game;
|
||||
mod installed_mod;
|
||||
mod link;
|
||||
mod mod_config;
|
||||
mod mod_file;
|
||||
mod modded_instance;
|
||||
mod root_config;
|
||||
|
||||
|
||||
pub use game::*;
|
||||
pub use installed_mod::*;
|
||||
pub use link::*;
|
||||
pub use mod_config::*;
|
||||
pub use mod_file::*;
|
||||
pub use modded_instance::*;
|
||||
pub use root_config::*;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum ConfigReadWriteError {
|
||||
#[error("IO failure")]
|
||||
Io(#[from] std::io::Error),
|
||||
|
||||
#[error("Failed to deserialize toml")]
|
||||
Deserialize(#[from] toml::de::Error),
|
||||
|
||||
#[error("Failed to serialize to toml")]
|
||||
Serialize(#[from] toml::ser::Error),
|
||||
|
||||
#[error("The provided ID could not be found")]
|
||||
IDNotFound,
|
||||
}
|
||||
Reference in New Issue
Block a user