pub struct Encryption {
pub user_password: Vec<u8>,
pub owner_password: Vec<u8>,
pub permissions: Permissions,
pub encrypt_metadata: bool,
}Expand description
Encryption for a full save: always AES-256 (revision 6).
Fields§
§user_password: Vec<u8>The password needed to open the document (may be empty).
owner_password: Vec<u8>The password that lifts the permission restrictions.
permissions: PermissionsWhat a user-password reader may do.
encrypt_metadata: boolWhether the XMP metadata stream is encrypted too.
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
Source§fn clone(&self) -> Encryption
fn clone(&self) -> Encryption
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 Encryption
impl Debug for Encryption
impl Eq for Encryption
Source§impl PartialEq for Encryption
impl PartialEq for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnsafeUnpin for Encryption
impl UnwindSafe for Encryption
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