pub struct ChecksumConfig {
pub algorithm: ChecksumAlgorithm,
pub verify_on_read: bool,
pub compute_on_write: bool,
}Expand description
Configuration for checksum verification
Fields§
§algorithm: ChecksumAlgorithmDefault checksum algorithm
verify_on_read: boolWhether to verify checksums on read
compute_on_write: boolWhether to compute checksums on write
Trait Implementations§
Source§impl Clone for ChecksumConfig
impl Clone for ChecksumConfig
Source§fn clone(&self) -> ChecksumConfig
fn clone(&self) -> ChecksumConfig
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 ChecksumConfig
impl Debug for ChecksumConfig
Source§impl Default for ChecksumConfig
impl Default for ChecksumConfig
Source§impl<'de> Deserialize<'de> for ChecksumConfig
impl<'de> Deserialize<'de> for ChecksumConfig
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 ChecksumConfig
impl PartialEq for ChecksumConfig
Source§impl Serialize for ChecksumConfig
impl Serialize for ChecksumConfig
impl Eq for ChecksumConfig
impl StructuralPartialEq for ChecksumConfig
Auto Trait Implementations§
impl Freeze for ChecksumConfig
impl RefUnwindSafe for ChecksumConfig
impl Send for ChecksumConfig
impl Sync for ChecksumConfig
impl Unpin for ChecksumConfig
impl UnwindSafe for ChecksumConfig
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