pub struct EncryptedObject {
pub kind: ObjectKind,
pub version: u32,
pub nonce: [u8; 12],
pub ciphertext: Vec<u8>,
}Expand description
The on-disk (on-block) format: a serialized+encrypted logical object. This is what actually gets written into a block.
Fields§
§kind: ObjectKind§version: u32§nonce: [u8; 12]12-byte nonce for ChaCha20-Poly1305.
ciphertext: Vec<u8>Ciphertext (includes Poly1305 tag appended by AEAD).
Trait Implementations§
Source§impl Clone for EncryptedObject
impl Clone for EncryptedObject
Source§fn clone(&self) -> EncryptedObject
fn clone(&self) -> EncryptedObject
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 EncryptedObject
impl Debug for EncryptedObject
Source§impl<'de> Deserialize<'de> for EncryptedObject
impl<'de> Deserialize<'de> for EncryptedObject
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
Auto Trait Implementations§
impl Freeze for EncryptedObject
impl RefUnwindSafe for EncryptedObject
impl Send for EncryptedObject
impl Sync for EncryptedObject
impl Unpin for EncryptedObject
impl UnsafeUnpin for EncryptedObject
impl UnwindSafe for EncryptedObject
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