pub struct DecryptOptions<'a> {
pub key: Option<&'a RecipientKey>,
pub allow_legacy_ciphers: bool,
}Expand description
How decode_document_with may treat an encrypted document.
The default decrypts nothing: an encrypted document stays skipped unless the caller supplies a key.
Fields§
§key: Option<&'a RecipientKey>The recipient key, or None to keep encrypted documents skipped.
allow_legacy_ciphers: boolAccept DES-EDE3-CBC content encryption. Off by default: 3DES has a 64-bit block and an effective strength well below its key length.
Trait Implementations§
Source§impl<'a> Clone for DecryptOptions<'a>
impl<'a> Clone for DecryptOptions<'a>
impl<'a> Copy for DecryptOptions<'a>
Source§impl<'a> Debug for DecryptOptions<'a>
impl<'a> Debug for DecryptOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecryptOptions<'a>
impl<'a> RefUnwindSafe for DecryptOptions<'a>
impl<'a> Send for DecryptOptions<'a>
impl<'a> Sync for DecryptOptions<'a>
impl<'a> Unpin for DecryptOptions<'a>
impl<'a> UnsafeUnpin for DecryptOptions<'a>
impl<'a> UnwindSafe for DecryptOptions<'a>
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