pub struct ConfigLoaded<T> {
pub inst: T,
pub source: String,
pub path: PathBuf,
}
Expand description
A structure which is returned in case of successfull config file loading.
A generic T
is a structure or enum which represents the loaded config file.
Fields§
§inst: T
A deserialized instance.
source: String
A source of the deserialized inst
.
path: PathBuf
A full path (from root ‘/’) to the file.
Auto Trait Implementations§
impl<T> Freeze for ConfigLoaded<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConfigLoaded<T>where
T: RefUnwindSafe,
impl<T> Send for ConfigLoaded<T>where
T: Send,
impl<T> Sync for ConfigLoaded<T>where
T: Sync,
impl<T> Unpin for ConfigLoaded<T>where
T: Unpin,
impl<T> UnwindSafe for ConfigLoaded<T>where
T: UnwindSafe,
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