pub struct EncryptOptions {
pub algorithm: Option<Algorithm>,
pub aad: Option<Vec<u8>>,
}Expand description
Encryption options
Fields§
§algorithm: Option<Algorithm>Preferred algorithm (defaults to AES-256-GCM)
aad: Option<Vec<u8>>Additional authenticated data
Trait Implementations§
Source§impl Clone for EncryptOptions
impl Clone for EncryptOptions
Source§fn clone(&self) -> EncryptOptions
fn clone(&self) -> EncryptOptions
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 EncryptOptions
impl Debug for EncryptOptions
Source§impl Default for EncryptOptions
impl Default for EncryptOptions
Source§fn default() -> EncryptOptions
fn default() -> EncryptOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncryptOptions
impl RefUnwindSafe for EncryptOptions
impl Send for EncryptOptions
impl Sync for EncryptOptions
impl Unpin for EncryptOptions
impl UnwindSafe for EncryptOptions
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