pub struct Config {
pub root_folder: String,
pub log_file: String,
pub index_file: String,
pub not_found_file: String,
pub mime_types: HashMap<String, String>,
}Fields§
§root_folder: StringRoot folder of the static resources to serve
log_file: StringLog file path
index_file: StringName of the index file
not_found_file: StringFile to serve as 404 error content page
mime_types: HashMap<String, String>Supported mime types with their corresponding file extensions
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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