pub struct FileServerConfig {
pub root: String,
pub browse: bool,
pub trailing_slash: bool,
pub index: Vec<String>,
}Expand description
Static file serving config.
Fields§
§root: String§browse: bool§trailing_slash: boolWhen true (default), redirect directory requests without trailing slash to add one.
index: Vec<String>List of index filenames to try when serving a directory (default: [“index.html”]).
Trait Implementations§
Source§impl Clone for FileServerConfig
impl Clone for FileServerConfig
Source§fn clone(&self) -> FileServerConfig
fn clone(&self) -> FileServerConfig
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 FileServerConfig
impl Debug for FileServerConfig
Auto Trait Implementations§
impl Freeze for FileServerConfig
impl RefUnwindSafe for FileServerConfig
impl Send for FileServerConfig
impl Sync for FileServerConfig
impl Unpin for FileServerConfig
impl UnsafeUnpin for FileServerConfig
impl UnwindSafe for FileServerConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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