pub struct EncryptedBlob {
pub ciphertext: Vec<u8>,
pub nonce: [u8; 12],
}Expand description
One ciphertext + its 12-byte GCM nonce.
Fields§
§ciphertext: Vec<u8>§nonce: [u8; 12]Trait Implementations§
Source§impl Clone for EncryptedBlob
impl Clone for EncryptedBlob
Source§fn clone(&self) -> EncryptedBlob
fn clone(&self) -> EncryptedBlob
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EncryptedBlob
impl Debug for EncryptedBlob
Source§impl PartialEq for EncryptedBlob
impl PartialEq for EncryptedBlob
Source§fn eq(&self, other: &EncryptedBlob) -> bool
fn eq(&self, other: &EncryptedBlob) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EncryptedBlob
impl StructuralPartialEq for EncryptedBlob
Auto Trait Implementations§
impl Freeze for EncryptedBlob
impl RefUnwindSafe for EncryptedBlob
impl Send for EncryptedBlob
impl Sync for EncryptedBlob
impl Unpin for EncryptedBlob
impl UnsafeUnpin for EncryptedBlob
impl UnwindSafe for EncryptedBlob
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