pub struct HandlerSettings {
pub root: PathBuf,
pub index_file: String,
pub fallback_path: Option<String>,
pub expose_hidden: ExposeHiddenFiles,
}Fields§
§root: PathBuf§index_file: String§fallback_path: Option<String>Implementations§
Source§impl HandlerSettings
impl HandlerSettings
pub fn from_env() -> Result<Self, SettingsFromEnvError>
Trait Implementations§
Source§impl Default for HandlerSettings
impl Default for HandlerSettings
Source§impl TryFrom<HandlerSettings> for Handler
impl TryFrom<HandlerSettings> for Handler
Source§type Error = HandlerBuildError
type Error = HandlerBuildError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for HandlerSettings
impl RefUnwindSafe for HandlerSettings
impl Send for HandlerSettings
impl Sync for HandlerSettings
impl Unpin for HandlerSettings
impl UnsafeUnpin for HandlerSettings
impl UnwindSafe for HandlerSettings
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