pub enum CloudChange {
Upsert {
item: CloudItem,
},
Delete {
key: CloudItemKey,
previous_parent_id: Option<CloudItemId>,
metadata_revision: Option<MetadataRevision>,
},
}Expand description
One product-neutral remote change.
Variants§
Upsert
Creates an item or replaces its known metadata/content state.
Delete
Removes an item using a durable deletion tombstone.
Fields
§
key: CloudItemKeyFully scoped stable identity of the deleted item.
§
previous_parent_id: Option<CloudItemId>Last known parent identity, when supplied by the backend or local baseline.
§
metadata_revision: Option<MetadataRevision>Deletion/metadata revision, when the backend exposes one.
Implementations§
Source§impl CloudChange
impl CloudChange
Sourcepub const fn key(&self) -> &CloudItemKey
pub const fn key(&self) -> &CloudItemKey
Returns the fully scoped item identity affected by this change.
Trait Implementations§
Source§impl Clone for CloudChange
impl Clone for CloudChange
Source§fn clone(&self) -> CloudChange
fn clone(&self) -> CloudChange
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 CloudChange
impl Debug for CloudChange
Source§impl PartialEq for CloudChange
impl PartialEq for CloudChange
impl Eq for CloudChange
impl StructuralPartialEq for CloudChange
Auto Trait Implementations§
impl Freeze for CloudChange
impl RefUnwindSafe for CloudChange
impl Send for CloudChange
impl Sync for CloudChange
impl Unpin for CloudChange
impl UnwindSafe for CloudChange
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