pub struct Delta {
pub delta_type: DeltaType,
pub expected_version: Option<u64>,
pub verify_old_data: bool,
}Expand description
A complete delta operation with metadata
Fields§
§delta_type: DeltaTypeThe type of modification
expected_version: Option<u64>Expected file version before applying delta (for optimistic locking)
verify_old_data: boolWhether to verify the old data matches before applying
Implementations§
Source§impl Delta
impl Delta
Sourcepub fn with_version(delta_type: DeltaType, expected_version: u64) -> Self
pub fn with_version(delta_type: DeltaType, expected_version: u64) -> Self
Create a delta with version checking
Sourcepub fn without_verification(self) -> Self
pub fn without_verification(self) -> Self
Disable old data verification (faster but less safe)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Delta
impl RefUnwindSafe for Delta
impl Send for Delta
impl Sync for Delta
impl Unpin for Delta
impl UnwindSafe for Delta
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<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