pub struct EncryptionResult {
pub ciphertext: Vec<u8>,
pub algorithm: Algorithm,
pub nonce: Vec<u8>,
pub tag: Vec<u8>,
}Expand description
Result of an encryption operation
Fields§
§ciphertext: Vec<u8>Encrypted ciphertext
algorithm: AlgorithmAlgorithm used
nonce: Vec<u8>Nonce/IV used
tag: Vec<u8>Authentication tag
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionResult
impl Clone for EncryptionResult
Source§fn clone(&self) -> EncryptionResult
fn clone(&self) -> EncryptionResult
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 EncryptionResult
impl Debug for EncryptionResult
Source§impl<'de> Deserialize<'de> for EncryptionResult
impl<'de> Deserialize<'de> for EncryptionResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for EncryptionResult
impl Drop for EncryptionResult
Auto Trait Implementations§
impl Freeze for EncryptionResult
impl RefUnwindSafe for EncryptionResult
impl Send for EncryptionResult
impl Sync for EncryptionResult
impl Unpin for EncryptionResult
impl UnwindSafe for EncryptionResult
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