pub struct ConfigFile {
pub path: PathBuf,
pub config_type: ConfigFileType,
}Expand description
Discovered configuration file
Fields§
§path: PathBufPath to the configuration file
config_type: ConfigFileTypeType of configuration
Implementations§
Source§impl ConfigFile
impl ConfigFile
Sourcepub fn new(path: PathBuf, config_type: ConfigFileType) -> Self
pub fn new(path: PathBuf, config_type: ConfigFileType) -> Self
Create a new configuration file reference
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
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 ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnwindSafe for ConfigFile
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