pub struct Encryption {
pub user_password: Vec<u8>,
pub owner_password: Vec<u8>,
pub permissions: Permissions,
pub encrypt_metadata: bool,
}Expand description
How a document is to be encrypted on save (ISO 32000-2 §7.6.4.4).
Fields§
§user_password: Vec<u8>Opens the document with the rights permissions grants. Empty means
anyone can open it.
owner_password: Vec<u8>Opens the document with every right. Empty means the user password serves as both.
permissions: PermissionsWhat a reader who opened with the user password may do.
encrypt_metadata: boolWhether the document’s XMP metadata stream is enciphered 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