pub struct ActiveFile {
pub path: PathBuf,
pub language: String,
pub last_modified: DateTime<Utc>,
pub line_count: usize,
}Expand description
A currently active/open file — a weapon in the fighter’s hands.
Fields§
§path: PathBufPath to the file.
language: StringProgramming language of the file.
last_modified: DateTime<Utc>When the file was last modified.
line_count: usizeNumber of lines in the file.
Trait Implementations§
Source§impl Clone for ActiveFile
impl Clone for ActiveFile
Source§fn clone(&self) -> ActiveFile
fn clone(&self) -> ActiveFile
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 moreSource§impl Debug for ActiveFile
impl Debug for ActiveFile
Source§impl<'de> Deserialize<'de> for ActiveFile
impl<'de> Deserialize<'de> for ActiveFile
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 ActiveFile
impl RefUnwindSafe for ActiveFile
impl Send for ActiveFile
impl Sync for ActiveFile
impl Unpin for ActiveFile
impl UnsafeUnpin for ActiveFile
impl UnwindSafe for ActiveFile
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