pub struct WorkspaceComparison {
pub all_ahead_items_visible: bool,
pub all_behind_items_visible: bool,
pub skipped_comparison: bool,
pub diffs: Vec<WorkspaceItemDiff>,
pub summary: Box<CompareSummary>,
}Fields§
§all_ahead_items_visible: boolAll items with changes ahead are visible by the user of the request.
all_behind_items_visible: boolAll items with changes behind are visible by the user of the request.
skipped_comparison: boolWhether the comparison was skipped. This happens with old forks that where not being kept track of
diffs: Vec<WorkspaceItemDiff>List of differences found between workspaces
summary: Box<CompareSummary>Implementations§
Source§impl WorkspaceComparison
impl WorkspaceComparison
pub fn new( all_ahead_items_visible: bool, all_behind_items_visible: bool, skipped_comparison: bool, diffs: Vec<WorkspaceItemDiff>, summary: CompareSummary, ) -> WorkspaceComparison
Trait Implementations§
Source§impl Clone for WorkspaceComparison
impl Clone for WorkspaceComparison
Source§fn clone(&self) -> WorkspaceComparison
fn clone(&self) -> WorkspaceComparison
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceComparison
impl Debug for WorkspaceComparison
Source§impl Default for WorkspaceComparison
impl Default for WorkspaceComparison
Source§fn default() -> WorkspaceComparison
fn default() -> WorkspaceComparison
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceComparison
impl<'de> Deserialize<'de> for WorkspaceComparison
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 PartialEq for WorkspaceComparison
impl PartialEq for WorkspaceComparison
Source§impl Serialize for WorkspaceComparison
impl Serialize for WorkspaceComparison
impl StructuralPartialEq for WorkspaceComparison
Auto Trait Implementations§
impl Freeze for WorkspaceComparison
impl RefUnwindSafe for WorkspaceComparison
impl Send for WorkspaceComparison
impl Sync for WorkspaceComparison
impl Unpin for WorkspaceComparison
impl UnwindSafe for WorkspaceComparison
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)