Struct sos_protocol::UpdateSet
source · 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§
source§impl PartialEq for UpdateSet
impl PartialEq for UpdateSet
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more