pub struct DecodeOpts {
pub limits: Limits,
pub verify_hash: bool,
pub verify_canonical: bool,
}Expand description
Decode options.
Fields§
§limits: Limits§verify_hash: boolVerify the stored content hash (always recommended; only tests that intentionally mutate bytes turn it off).
verify_canonical: boolProve that the image is exactly the canonical encoding of its own content. This is unconditional: an unflagged image fails, because the canonical encoding of its content carries the canonical flag.
Implementations§
Source§impl DecodeOpts
impl DecodeOpts
Trait Implementations§
Source§impl Clone for DecodeOpts
impl Clone for DecodeOpts
impl Copy for DecodeOpts
Source§impl Debug for DecodeOpts
impl Debug for DecodeOpts
Source§impl Default for DecodeOpts
impl Default for DecodeOpts
impl Eq for DecodeOpts
Source§impl PartialEq for DecodeOpts
impl PartialEq for DecodeOpts
impl StructuralPartialEq for DecodeOpts
Auto Trait Implementations§
impl Freeze for DecodeOpts
impl RefUnwindSafe for DecodeOpts
impl Send for DecodeOpts
impl Sync for DecodeOpts
impl Unpin for DecodeOpts
impl UnsafeUnpin for DecodeOpts
impl UnwindSafe for DecodeOpts
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.