pub struct TrackedChanges {
pub identity: IndexSet<TrackedFolderChange>,
pub device: IndexSet<TrackedDeviceChange>,
pub account: IndexSet<TrackedAccountChange>,
pub files: IndexSet<TrackedFileChange>,
pub folders: HashMap<VaultId, IndexSet<TrackedFolderChange>>,
}Expand description
Changes tracking during a merge operation.
Fields§
§identity: IndexSet<TrackedFolderChange>Changes made to the identity folder.
device: IndexSet<TrackedDeviceChange>Changes made to the devices collection.
account: IndexSet<TrackedAccountChange>Changes made to the account.
files: IndexSet<TrackedFileChange>files only.Changes to the files log.
folders: HashMap<VaultId, IndexSet<TrackedFolderChange>>Change made to each folder.
Implementations§
Source§impl TrackedChanges
impl TrackedChanges
Sourcepub fn add_tracked_folder_changes(
&mut self,
folder_id: &VaultId,
changes: IndexSet<TrackedFolderChange>,
)
pub fn add_tracked_folder_changes( &mut self, folder_id: &VaultId, changes: IndexSet<TrackedFolderChange>, )
Add tracked folder changes only when the set of tracked changes is not empty.
Sourcepub async fn new_folder_records(
value: &FolderPatch,
) -> Result<IndexSet<TrackedFolderChange>, Error>
pub async fn new_folder_records( value: &FolderPatch, ) -> Result<IndexSet<TrackedFolderChange>, Error>
Create a new set of tracked changes to a folder from a patch.
Sourcepub async fn new_folder_events(
events: Vec<WriteEvent>,
) -> Result<IndexSet<TrackedFolderChange>, Error>
pub async fn new_folder_events( events: Vec<WriteEvent>, ) -> Result<IndexSet<TrackedFolderChange>, Error>
Create a new set of tracked changes from a collection of folder events.
Sourcepub async fn new_account_records(
value: &AccountPatch,
) -> Result<IndexSet<TrackedAccountChange>, Error>
pub async fn new_account_records( value: &AccountPatch, ) -> Result<IndexSet<TrackedAccountChange>, Error>
Create a new set of tracked changes to an account from a patch.
Sourcepub async fn new_account_events(
events: Vec<AccountEvent>,
) -> Result<IndexSet<TrackedAccountChange>, Error>
pub async fn new_account_events( events: Vec<AccountEvent>, ) -> Result<IndexSet<TrackedAccountChange>, Error>
Create a new set of tracked changes from a collection of account events.
Sourcepub async fn new_device_records(
value: &DevicePatch,
) -> Result<IndexSet<TrackedDeviceChange>, Error>
pub async fn new_device_records( value: &DevicePatch, ) -> Result<IndexSet<TrackedDeviceChange>, Error>
Create a new set of tracked changes to a device from a patch.
Sourcepub async fn new_device_events(
events: Vec<DeviceEvent>,
) -> Result<IndexSet<TrackedDeviceChange>, Error>
pub async fn new_device_events( events: Vec<DeviceEvent>, ) -> Result<IndexSet<TrackedDeviceChange>, Error>
Create a new set of tracked changes from a collection of device events.
Sourcepub async fn new_file_records(
value: &FilePatch,
) -> Result<IndexSet<TrackedFileChange>, Error>
Available on crate feature files only.
pub async fn new_file_records( value: &FilePatch, ) -> Result<IndexSet<TrackedFileChange>, Error>
files only.Create a new set of tracked changes to a file from a patch.
Sourcepub async fn new_file_events(
events: Vec<FileEvent>,
) -> Result<IndexSet<TrackedFileChange>, Error>
Available on crate feature files only.
pub async fn new_file_events( events: Vec<FileEvent>, ) -> Result<IndexSet<TrackedFileChange>, Error>
files only.Create a new set of tracked changes from a collection of file events.
Trait Implementations§
Source§impl Clone for TrackedChanges
impl Clone for TrackedChanges
Source§fn clone(&self) -> TrackedChanges
fn clone(&self) -> TrackedChanges
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackedChanges
impl Debug for TrackedChanges
Source§impl Default for TrackedChanges
impl Default for TrackedChanges
Source§fn default() -> TrackedChanges
fn default() -> TrackedChanges
Source§impl PartialEq for TrackedChanges
impl PartialEq for TrackedChanges
impl Eq for TrackedChanges
impl StructuralPartialEq for TrackedChanges
Auto Trait Implementations§
impl Freeze for TrackedChanges
impl RefUnwindSafe for TrackedChanges
impl Send for TrackedChanges
impl Sync for TrackedChanges
impl Unpin for TrackedChanges
impl UnwindSafe for TrackedChanges
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
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
key and return true if they are equal.