pub struct UpdateSet {
pub identity: Option<FolderDiff>,
pub account: Option<AccountDiff>,
pub device: Option<DeviceDiff>,
pub files: Option<FileDiff>,
pub folders: HashMap<VaultId, FolderDiff>,
}Expand description
Set of updates to the folders in an account.
Used to destructively update folders in an account; the identity and folders are entire event logs so that the account state can be overwritten in the case of events such as changing encryption cipher, changing folder password or compacing the events in a folder.
Fields§
§identity: Option<FolderDiff>Identity folder event logs.
account: Option<AccountDiff>Account event log.
device: Option<DeviceDiff>Device event log.
files: Option<FileDiff>Available on crate feature
files only.Files event log.
folders: HashMap<VaultId, FolderDiff>Folders to be updated.
Trait Implementations§
impl Eq for UpdateSet
impl StructuralPartialEq for UpdateSet
Auto Trait Implementations§
impl Freeze for UpdateSet
impl RefUnwindSafe for UpdateSet
impl Send for UpdateSet
impl Sync for UpdateSet
impl Unpin for UpdateSet
impl UnwindSafe for UpdateSet
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.