pub struct FileSnapshot {
pub version: usize,
pub path: String,
pub content: String,
pub timestamp: DateTime<Utc>,
pub tool_name: String,
}Expand description
A single file version snapshot
Fields§
§version: usizeVersion number (0-indexed, monotonically increasing per file)
path: StringFile path (absolute or workspace-relative)
content: StringFile content at this version
timestamp: DateTime<Utc>Timestamp when the snapshot was taken
tool_name: StringTool that triggered the snapshot (e.g., “write”, “edit”, “patch”)
Trait Implementations§
Source§impl Clone for FileSnapshot
impl Clone for FileSnapshot
Source§fn clone(&self) -> FileSnapshot
fn clone(&self) -> FileSnapshot
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 FileSnapshot
impl Debug for FileSnapshot
Source§impl<'de> Deserialize<'de> for FileSnapshot
impl<'de> Deserialize<'de> for FileSnapshot
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
Source§impl From<&FileSnapshot> for VersionSummary
impl From<&FileSnapshot> for VersionSummary
Source§fn from(snapshot: &FileSnapshot) -> Self
fn from(snapshot: &FileSnapshot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileSnapshot
impl RefUnwindSafe for FileSnapshot
impl Send for FileSnapshot
impl Sync for FileSnapshot
impl Unpin for FileSnapshot
impl UnsafeUnpin for FileSnapshot
impl UnwindSafe for FileSnapshot
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