pub struct StaticFilesConfig {
pub root: PathBuf,
pub index: String,
}Expand description
The configuration of the static file plugin.
Fields§
§root: PathBufThe directory the files are served from.
index: StringThe file that answers a request for a directory.
Implementations§
Trait Implementations§
Source§impl Clone for StaticFilesConfig
impl Clone for StaticFilesConfig
Source§impl Debug for StaticFilesConfig
impl Debug for StaticFilesConfig
Auto Trait Implementations§
impl Freeze for StaticFilesConfig
impl RefUnwindSafe for StaticFilesConfig
impl Send for StaticFilesConfig
impl Sync for StaticFilesConfig
impl Unpin for StaticFilesConfig
impl UnsafeUnpin for StaticFilesConfig
impl UnwindSafe for StaticFilesConfig
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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