pub struct UnpackOptions {
pub expected_security_mode: SecurityMode,
pub expected_recipient_kid: Option<String>,
pub require_signature: bool,
}Expand description
Options for unpacking a message
Fields§
§expected_security_mode: SecurityModeExpected security mode, or Any to try all modes
expected_recipient_kid: Option<String>Expected recipient key ID
require_signature: boolWhether to require a valid signature
Implementations§
Source§impl UnpackOptions
impl UnpackOptions
Sourcepub fn with_require_signature(self, require: bool) -> Self
pub fn with_require_signature(self, require: bool) -> Self
Set whether to require a valid signature
Trait Implementations§
Source§impl Clone for UnpackOptions
impl Clone for UnpackOptions
Source§fn clone(&self) -> UnpackOptions
fn clone(&self) -> UnpackOptions
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 UnpackOptions
impl Debug for UnpackOptions
Auto Trait Implementations§
impl Freeze for UnpackOptions
impl RefUnwindSafe for UnpackOptions
impl Send for UnpackOptions
impl Sync for UnpackOptions
impl Unpin for UnpackOptions
impl UnsafeUnpin for UnpackOptions
impl UnwindSafe for UnpackOptions
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