pub struct FileStatus {
pub exists: bool,
pub content_hash: String,
pub last_modified: SystemTime,
pub locked_by: Option<String>,
pub dirty: bool,
}Expand description
Status of a tracked file in application state.
Fields§
§exists: boolWhether the file exists on disk.
content_hash: StringHash of the file contents.
last_modified: SystemTimeLast modification time.
locked_by: Option<String>Agent currently holding a lock on this file.
dirty: boolWhether the file has uncommitted changes.
Trait Implementations§
Source§impl Clone for FileStatus
impl Clone for FileStatus
Source§fn clone(&self) -> FileStatus
fn clone(&self) -> FileStatus
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 FileStatus
impl Debug for FileStatus
Source§impl<'de> Deserialize<'de> for FileStatus
impl<'de> Deserialize<'de> for FileStatus
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 FileStatus
impl RefUnwindSafe for FileStatus
impl Send for FileStatus
impl Sync for FileStatus
impl Unpin for FileStatus
impl UnsafeUnpin for FileStatus
impl UnwindSafe for FileStatus
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