Struct rd_util::json_file::JsonConfigFile
source · pub struct JsonConfigFile<T: JsonLoad + JsonSave> {
pub path: Option<PathBuf>,
pub loaded_mod: SystemTime,
pub data: T,
}
Fields§
§path: Option<PathBuf>
§loaded_mod: SystemTime
§data: T
Implementations§
Trait Implementations§
source§impl<T: Clone + JsonLoad + JsonSave> Clone for JsonConfigFile<T>
impl<T: Clone + JsonLoad + JsonSave> Clone for JsonConfigFile<T>
source§fn clone(&self) -> JsonConfigFile<T>
fn clone(&self) -> JsonConfigFile<T>
Returns a copy 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<T> Freeze for JsonConfigFile<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonConfigFile<T>where
T: RefUnwindSafe,
impl<T> Send for JsonConfigFile<T>where
T: Send,
impl<T> Sync for JsonConfigFile<T>where
T: Sync,
impl<T> Unpin for JsonConfigFile<T>where
T: Unpin,
impl<T> UnwindSafe for JsonConfigFile<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