pub struct FileEdit {
pub before: Option<AnyValue>,
pub after: Option<AnyValue>,
pub diff: Option<AnyValue>,
}Expand description
Describes a file modification with before/after state and diff metadata.
Supports creates (only after), deletes (only before), renames/moves
(different uri in before and after), and edits (same uri, different content).
Fields§
§before: Option<AnyValue>The file state before the edit. Absent for file creations or for in-place file edits.
after: Option<AnyValue>The file state after the edit. Absent for file deletions.
diff: Option<AnyValue>Optional diff display metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileEdit
impl<'de> Deserialize<'de> for FileEdit
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
impl StructuralPartialEq for FileEdit
Auto Trait Implementations§
impl Freeze for FileEdit
impl RefUnwindSafe for FileEdit
impl Send for FileEdit
impl Sync for FileEdit
impl Unpin for FileEdit
impl UnsafeUnpin for FileEdit
impl UnwindSafe for FileEdit
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