pub struct Builder { /* private fields */ }
Expand description
Builder for creating Config instances
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn site_title<S: Into<String>>(self, title: S) -> Self
pub fn site_title<S: Into<String>>(self, title: S) -> Self
Sets the site title
Sourcepub fn site_description<S: Into<String>>(self, desc: S) -> Self
pub fn site_description<S: Into<String>>(self, desc: S) -> Self
Sets the site description
Sourcepub fn content_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn content_dir<P: Into<PathBuf>>(self, path: P) -> Self
Sets the content directory
Sourcepub fn output_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn output_dir<P: Into<PathBuf>>(self, path: P) -> Self
Sets the output directory
Sourcepub fn template_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn template_dir<P: Into<PathBuf>>(self, path: P) -> Self
Sets the template directory
Sourcepub const fn server_enabled(self, enabled: bool) -> Self
pub const fn server_enabled(self, enabled: bool) -> Self
Enables or disables the development server
Sourcepub const fn server_port(self, port: u16) -> Self
pub const fn server_port(self, port: u16) -> Self
Sets the server port
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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