pub struct OptimisticLock {
pub field: String,
pub expected_version: u64,
pub increment_by: u64,
}Fields§
§field: String§expected_version: u64§increment_by: u64Implementations§
Trait Implementations§
Source§impl Clone for OptimisticLock
impl Clone for OptimisticLock
Source§fn clone(&self) -> OptimisticLock
fn clone(&self) -> OptimisticLock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OptimisticLock
impl Debug for OptimisticLock
Source§impl<'de> Deserialize<'de> for OptimisticLock
impl<'de> Deserialize<'de> for OptimisticLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OptimisticLock
impl PartialEq for OptimisticLock
Source§fn eq(&self, other: &OptimisticLock) -> bool
fn eq(&self, other: &OptimisticLock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptimisticLock
impl Serialize for OptimisticLock
impl Eq for OptimisticLock
impl StructuralPartialEq for OptimisticLock
Auto Trait Implementations§
impl Freeze for OptimisticLock
impl RefUnwindSafe for OptimisticLock
impl Send for OptimisticLock
impl Sync for OptimisticLock
impl Unpin for OptimisticLock
impl UnsafeUnpin for OptimisticLock
impl UnwindSafe for OptimisticLock
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