pub struct Config { /* private fields */ }
Expand description
Config struct
Holds basic configuration of mkhtml, including all required paths for it to work,
Has get_*
and set_*
,
Clone-able.
Implementations
sourceimpl Config
impl Config
pub fn get_pages_dir(self) -> PathBuf
pub fn get_parts_dir(self) -> PathBuf
pub fn get_static_dir(self) -> PathBuf
pub fn get_build_dir(self) -> PathBuf
pub fn set_pages_dir(&mut self, path: PathBuf)
pub fn set_parts_dir(&mut self, path: PathBuf)
pub fn set_static_dir(&mut self, path: PathBuf)
pub fn set_build_dir(&mut self, path: PathBuf)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more