pub struct AppConfig {
pub directory: PathBuf,
pub public: PathBuf,
pub base_path: String,
pub trailing_slash: bool,
pub lang: String,
pub html_precedence: HtmlPrecedence,
pub follow_symlinks: bool,
}Fields§
§directory: PathBufRouting directory, scanned recursively.
public: PathBufStatic files served from the site root.
base_path: StringMount the whole application under a sub-path, e.g. /docs.
trailing_slash: boolfalse: /about/ redirects to /about. true: the reverse.
lang: Stringlang attribute of the <html> element.
html_precedence: HtmlPrecedenceWhat to do when a directory contains both page.rs and page.html.
follow_symlinks: boolFollow symbolic links while scanning (loops are detected).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AppConfig
impl Serialize for AppConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AppConfig
Auto Trait Implementations§
impl Forget for AppConfig
impl Freeze for AppConfig
impl Move for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
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