pub struct VersionDiff {
pub from_version: Option<VersionId>,
pub to_version: Option<VersionId>,
pub files: Vec<ChangedFile>,
pub patch: Option<String>,
}Expand description
Diff between two versions or between a version and the current workspace.
Returned by Workspace::diff_versions and
Workspace::diff_version_to_workspace. When to_version is None
the diff is against the live workspace files.
Fields§
§from_version: Option<VersionId>Base version for this diff.
to_version: Option<VersionId>Target version, or None when diffing against live workspace files.
files: Vec<ChangedFile>Files that changed between the two points, sorted by path.
patch: Option<String>Unified diff patch text, or None when there are no text changes.
Trait Implementations§
Source§impl Clone for VersionDiff
impl Clone for VersionDiff
Source§fn clone(&self) -> VersionDiff
fn clone(&self) -> VersionDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VersionDiff
impl Debug for VersionDiff
Source§impl<'de> Deserialize<'de> for VersionDiff
impl<'de> Deserialize<'de> for VersionDiff
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 VersionDiff
impl RefUnwindSafe for VersionDiff
impl Send for VersionDiff
impl Sync for VersionDiff
impl Unpin for VersionDiff
impl UnsafeUnpin for VersionDiff
impl UnwindSafe for VersionDiff
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