Struct static_web_server::settings::Settings
source · pub struct Settings {
pub general: General,
pub advanced: Option<Advanced>,
}
Expand description
The full server CLI and File options.
Fields§
§general: General
General server options
advanced: Option<Advanced>
Advanced server options
Implementations§
source§impl Settings
impl Settings
sourcepub fn get(log_init: bool) -> Result<Settings>
pub fn get(log_init: bool) -> Result<Settings>
Reads CLI/Env and config file options returning the server settings.
It also takes care to initialize the logging system with its level
once the general
settings are determined.
sourcepub fn get_unparsed(log_init: bool) -> Result<Settings>
pub fn get_unparsed(log_init: bool) -> Result<Settings>
Reads CLI/Env and config file options returning the server settings without parsing arguments useful for testing.
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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