pub struct Config {
pub templates_dir: PathBuf,
pub preferences: Preferences,
}Expand description
Configuration for FerrisUp
Fields§
§templates_dir: PathBufPath to templates directory
preferences: PreferencesUser preferences
Implementations§
Source§impl Config
impl Config
Sourcepub fn default_path() -> PathBuf
pub fn default_path() -> PathBuf
Get the default configuration path
Sourcepub fn get_config_path() -> PathBuf
pub fn get_config_path() -> PathBuf
Get the config path to use for operations
Sourcepub fn get_default_config() -> Self
pub fn get_default_config() -> Self
Get the default configuration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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