pub struct SyncCompare {
pub identity: Option<Comparison>,
pub account: Option<Comparison>,
pub device: Option<Comparison>,
pub files: Option<Comparison>,
pub folders: IndexMap<VaultId, Comparison>,
}Expand description
Collection of comparisons for an account.
When a local account does not contain the proof for a remote event log if will interrogate the server to compare it’s proof with the remote tree.
The server will reply with comparison(s) so that the local account can determine if the trees have completely diverged or whether it can attempt to automatically merge partially diverged trees.
Fields§
§identity: Option<Comparison>Identity vault comparison.
account: Option<Comparison>Account log comparison.
device: Option<Comparison>Device log comparison.
files: Option<Comparison>Available on crate feature
files only.Files log comparison.
folders: IndexMap<VaultId, Comparison>Comparisons for the account folders.
Implementations§
Source§impl SyncCompare
impl SyncCompare
Sourcepub fn maybe_conflict(&self) -> MaybeConflict
pub fn maybe_conflict(&self) -> MaybeConflict
Determine if this comparison might conflict.
Trait Implementations§
Source§impl Clone for SyncCompare
impl Clone for SyncCompare
Source§fn clone(&self) -> SyncCompare
fn clone(&self) -> SyncCompare
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 SyncCompare
impl Debug for SyncCompare
Source§impl Default for SyncCompare
impl Default for SyncCompare
Source§fn default() -> SyncCompare
fn default() -> SyncCompare
Returns the “default value” for a type. Read more
Source§impl PartialEq for SyncCompare
impl PartialEq for SyncCompare
impl Eq for SyncCompare
impl StructuralPartialEq for SyncCompare
Auto Trait Implementations§
impl Freeze for SyncCompare
impl RefUnwindSafe for SyncCompare
impl Send for SyncCompare
impl Sync for SyncCompare
impl Unpin for SyncCompare
impl UnwindSafe for SyncCompare
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.