pub struct WorkspaceItemDiff {
pub kind: Kind,
pub path: String,
pub ahead: i32,
pub behind: i32,
pub has_changes: bool,
pub exists_in_source: bool,
pub exists_in_fork: bool,
}Fields§
§kind: KindType of the item
path: StringPath of the item in the workspace
ahead: i32Number of versions source is ahead of target
behind: i32Number of versions source is behind target
has_changes: boolWhether the item has any differences
exists_in_source: boolIf the item exists in the source workspace
exists_in_fork: boolIf the item exists in the fork workspace
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceItemDiff
impl Clone for WorkspaceItemDiff
Source§fn clone(&self) -> WorkspaceItemDiff
fn clone(&self) -> WorkspaceItemDiff
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 WorkspaceItemDiff
impl Debug for WorkspaceItemDiff
Source§impl Default for WorkspaceItemDiff
impl Default for WorkspaceItemDiff
Source§fn default() -> WorkspaceItemDiff
fn default() -> WorkspaceItemDiff
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceItemDiff
impl<'de> Deserialize<'de> for WorkspaceItemDiff
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 WorkspaceItemDiff
impl PartialEq for WorkspaceItemDiff
Source§impl Serialize for WorkspaceItemDiff
impl Serialize for WorkspaceItemDiff
impl StructuralPartialEq for WorkspaceItemDiff
Auto Trait Implementations§
impl Freeze for WorkspaceItemDiff
impl RefUnwindSafe for WorkspaceItemDiff
impl Send for WorkspaceItemDiff
impl Sync for WorkspaceItemDiff
impl Unpin for WorkspaceItemDiff
impl UnwindSafe for WorkspaceItemDiff
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)