pub struct SyncResult {
pub updated: bool,
pub conflicts: Vec<String>,
pub new_commits: u32,
pub message: String,
pub metadata: HashMap<String, String>,
}Expand description
Result of a sync operation — pulling upstream changes into the local workspace.
Fields§
§updated: boolWhether upstream had new changes that were incorporated.
conflicts: Vec<String>Files with merge conflicts (empty if none).
new_commits: u32Number of new upstream commits incorporated.
message: StringHuman-readable summary of what happened.
metadata: HashMap<String, String>Adapter-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for SyncResult
impl Clone for SyncResult
Source§fn clone(&self) -> SyncResult
fn clone(&self) -> SyncResult
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 SyncResult
impl Debug for SyncResult
Source§impl<'de> Deserialize<'de> for SyncResult
impl<'de> Deserialize<'de> for SyncResult
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 SyncResult
impl RefUnwindSafe for SyncResult
impl Send for SyncResult
impl Sync for SyncResult
impl Unpin for SyncResult
impl UnsafeUnpin for SyncResult
impl UnwindSafe for SyncResult
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