1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use ::system::{Argv, ThreadModel}; #[derive(Debug, Clone, Hash, Eq, PartialEq, Serialize)] pub enum Mode { Interactive, Command(String), Module(String), File } #[derive(Debug, Clone, Hash, Eq, PartialEq, Serialize)] pub struct Config<'a> { pub mode: Mode, pub arguments: Argv<'a>, pub debug_support: bool, pub thread_model: ThreadModel, pub logging: Logging } #[derive(Debug, Clone, Hash, Eq, PartialEq, Serialize)] pub struct Logging;