pub struct EncryptedBackup { /* private fields */ }Implementations§
Source§impl EncryptedBackup
impl EncryptedBackup
pub fn new() -> Self
pub fn get_derivation_paths(&self) -> Vec<DerivationPath>
pub fn get_keys(&self) -> Vec<PublicKey>
pub fn get_content(&self) -> Content
pub fn get_version(&self) -> Version
pub fn get_encryption(&self) -> Encryption
pub fn set_keys(self, keys: Vec<PublicKey>) -> Self
pub fn set_version(self, version: Version) -> Self
pub fn set_content_type(self, content_type: Content) -> Self
pub fn set_encryption(self, encryption: Encryption) -> Self
pub fn set_derivation_paths(self, derivation_paths: Vec<DerivationPath>) -> Self
pub fn set_payload<T: ToPayload>(self, payload: &T) -> Result<Self, Error>
pub fn encrypt(self) -> Result<Vec<u8>, Error>
pub fn set_encrypted_payload(self, bytes: &[u8]) -> Result<Self, Error>
pub fn extract(content: Content, bytes: Vec<u8>) -> Result<Decrypted, Error>
pub fn decrypt(&self) -> Result<Decrypted, Error>
Trait Implementations§
Source§impl Clone for EncryptedBackup
impl Clone for EncryptedBackup
Source§fn clone(&self) -> EncryptedBackup
fn clone(&self) -> EncryptedBackup
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 EncryptedBackup
impl Debug for EncryptedBackup
Auto Trait Implementations§
impl Freeze for EncryptedBackup
impl RefUnwindSafe for EncryptedBackup
impl Send for EncryptedBackup
impl Sync for EncryptedBackup
impl Unpin for EncryptedBackup
impl UnwindSafe for EncryptedBackup
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