pub struct SystemPaths { /* private fields */ }Implementations§
Source§impl SystemPaths
impl SystemPaths
pub fn from_profile(paths: &PathsConfig) -> Result<Self, PathError>
pub fn root(&self) -> &Path
pub fn services(&self) -> &Path
pub fn skills(&self) -> &Path
pub fn settings(&self) -> &Path
pub fn content_config(&self) -> &Path
pub fn geoip_database(&self) -> Option<&Path>
pub fn logs(&self) -> PathBuf
pub fn resolve_skill(&self, name: &str) -> PathBuf
pub fn resolve_service(&self, name: &str) -> PathBuf
pub fn defaults(&self) -> &Path
pub fn default_templates(&self) -> PathBuf
pub fn default_assets(&self) -> PathBuf
pub fn default_web(&self) -> PathBuf
Trait Implementations§
Source§impl Clone for SystemPaths
impl Clone for SystemPaths
Source§fn clone(&self) -> SystemPaths
fn clone(&self) -> SystemPaths
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SystemPaths
impl RefUnwindSafe for SystemPaths
impl Send for SystemPaths
impl Sync for SystemPaths
impl Unpin for SystemPaths
impl UnwindSafe for SystemPaths
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