pub struct VerificationOptions {
pub hash_algorithm: Option<HashAlgorithm>,
pub salt: Option<Vec<u8>>,
}
Expand description
Set of options used to enable verity on a file.
Fields§
§hash_algorithm: Option<HashAlgorithm>
§salt: Option<Vec<u8>>
Trait Implementations§
Source§impl Clone for VerificationOptions
impl Clone for VerificationOptions
Source§fn clone(&self) -> VerificationOptions
fn clone(&self) -> VerificationOptions
Returns a copy 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 VerificationOptions
impl Debug for VerificationOptions
Source§impl Encodable for VerificationOptions
impl Encodable for VerificationOptions
Source§type Encoded = WireVerificationOptions
type Encoded = WireVerificationOptions
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for VerificationOptionswhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for VerificationOptionswhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireVerificationOptions> for VerificationOptions
impl TakeFrom<WireVerificationOptions> for VerificationOptions
Source§fn take_from(from: &WireVerificationOptions) -> Self
fn take_from(from: &WireVerificationOptions) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for VerificationOptions
impl RefUnwindSafe for VerificationOptions
impl Send for VerificationOptions
impl Sync for VerificationOptions
impl Unpin for VerificationOptions
impl UnwindSafe for VerificationOptions
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