pub struct LogFile {
pub name: String,
pub path: PathBuf,
pub _type: LogFileType,
pub modified: Option<OffsetDateTime>,
}
Available on crate feature
log-files
only.Expand description
Represents a single log file. On each launch the game creates a new log file and compresses the old one.
Fields§
§name: String
Filename
path: PathBuf
Filepath
_type: LogFileType
Type
modified: Option<OffsetDateTime>
Modified timestamp on filesystem
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogFile
impl<'de> Deserialize<'de> for LogFile
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 LogFile
impl RefUnwindSafe for LogFile
impl Send for LogFile
impl Sync for LogFile
impl Unpin for LogFile
impl UnwindSafe for LogFile
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