pub struct VersionConfig {
pub verify_on_read: bool,
pub increment_on_write: bool,
pub max_version_diff: u64,
}Expand description
Configuration for version verification
Fields§
§verify_on_read: boolWhether to verify versions on read
increment_on_write: boolWhether to increment versions on write
max_version_diff: u64Maximum version difference allowed
Trait Implementations§
Source§impl Clone for VersionConfig
impl Clone for VersionConfig
Source§fn clone(&self) -> VersionConfig
fn clone(&self) -> VersionConfig
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 VersionConfig
impl Debug for VersionConfig
Source§impl Default for VersionConfig
impl Default for VersionConfig
Source§impl<'de> Deserialize<'de> for VersionConfig
impl<'de> Deserialize<'de> for VersionConfig
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 VersionConfig
impl PartialEq for VersionConfig
Source§impl Serialize for VersionConfig
impl Serialize for VersionConfig
impl Eq for VersionConfig
impl StructuralPartialEq for VersionConfig
Auto Trait Implementations§
impl Freeze for VersionConfig
impl RefUnwindSafe for VersionConfig
impl Send for VersionConfig
impl Sync for VersionConfig
impl Unpin for VersionConfig
impl UnwindSafe for VersionConfig
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