pub struct CoreSettings {
pub thread_pool_size: Option<usize>,
pub idle_listener_sleep_duration: Option<u64>,
pub log_level: Option<LevelFilter>,
pub log_timestamp: Option<bool>,
pub body_len_limit: Option<usize>,
pub log_error_details: Option<bool>,
pub allow_root: Option<bool>,
pub buffer_size_limit: Option<usize>,
pub allow_deprecated: Option<bool>,
}Expand description
Core settings
See the config.toml file for a description of each field.
Fields§
§thread_pool_size: Option<usize>§idle_listener_sleep_duration: Option<u64>§log_level: Option<LevelFilter>§log_timestamp: Option<bool>§body_len_limit: Option<usize>§log_error_details: Option<bool>§allow_root: Option<bool>§buffer_size_limit: Option<usize>§allow_deprecated: Option<bool>Trait Implementations§
Source§impl Clone for CoreSettings
impl Clone for CoreSettings
Source§fn clone(&self) -> CoreSettings
fn clone(&self) -> CoreSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoreSettings
impl Debug for CoreSettings
Source§impl<'de> Deserialize<'de> for CoreSettings
impl<'de> Deserialize<'de> for CoreSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CoreSettings
Auto Trait Implementations§
impl Freeze for CoreSettings
impl RefUnwindSafe for CoreSettings
impl Send for CoreSettings
impl Sync for CoreSettings
impl Unpin for CoreSettings
impl UnwindSafe for CoreSettings
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