pub struct GenericVault {
pub nonce: XNonce,
pub ciphertext: Vec<u8>,
pub augmentation: Option<Vec<u8>>,
}Fields§
§nonce: XNonce§ciphertext: Vec<u8>§augmentation: Option<Vec<u8>>Implementations§
Trait Implementations§
Source§impl Debug for GenericVault
impl Debug for GenericVault
Source§impl From<(GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>, Vec<u8>)> for GenericVault
impl From<(GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>, Vec<u8>)> for GenericVault
Source§impl ProstDecode for GenericVault
impl ProstDecode for GenericVault
type EncodedType = GenericVault
fn decode<M>(message: M) -> Result<Self, DecodeError>
Source§impl ProstEncode for GenericVault
impl ProstEncode for GenericVault
Source§impl Storable for GenericVault
impl Storable for GenericVault
fn store(&self, path: &PathBuf) -> Result<(), StorageError>where
Self: ProstEncode,
fn load(path: &PathBuf) -> Result<Self, StorageError>where
Self: ProstDecode,
Auto Trait Implementations§
impl Freeze for GenericVault
impl RefUnwindSafe for GenericVault
impl Send for GenericVault
impl Sync for GenericVault
impl Unpin for GenericVault
impl UnwindSafe for GenericVault
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