pub struct AppConfig {
pub configs: Vec<Config>,
pub notifications: NotificationSettings,
pub sounds: SoundSettings,
pub open_history_on_start: bool,
pub env: String,
pub fs_check_interval: u64,
pub amount_history_load: usize,
pub db_autodump_interval: u64,
pub ssh_connection_timeout: u64,
pub sftp_buffer_size: usize,
pub webapi_port: u16,
}Fields§
§configs: Vec<Config>§notifications: NotificationSettings§sounds: SoundSettings§open_history_on_start: bool§env: String§fs_check_interval: u64§amount_history_load: usize§db_autodump_interval: u64§ssh_connection_timeout: u64§sftp_buffer_size: usize§webapi_port: u16Implementations§
Source§impl AppConfig
impl AppConfig
pub fn new() -> Result<Self>
pub fn data_dir_base() -> &'static str
pub fn select_config(&self) -> Result<Config>
pub fn project_root_dir() -> PathBuf
pub fn project_dir(&self) -> PathBuf
pub fn db_dumps_dir(&self) -> PathBuf
pub fn default_config_file() -> PathBuf
pub fn database_path(&self) -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more