pub struct EncryptionBuilder(/* private fields */);Expand description
Builds an Encryption one setting at a time.
Implementations§
Source§impl EncryptionBuilder
impl EncryptionBuilder
Sourcepub fn user_password(self, password: Vec<u8>) -> Self
pub fn user_password(self, password: Vec<u8>) -> Self
Opens the document with the rights permissions grants.
Sourcepub fn owner_password(self, password: Vec<u8>) -> Self
pub fn owner_password(self, password: Vec<u8>) -> Self
Opens the document with every right.
Sourcepub fn permissions(self, permissions: Permissions) -> Self
pub fn permissions(self, permissions: Permissions) -> Self
What a reader who opened with the user password may do.
Sourcepub fn encrypt_metadata(self, encrypt: bool) -> Self
pub fn encrypt_metadata(self, encrypt: bool) -> Self
Whether the XMP metadata stream is enciphered too.
Sourcepub fn build(self) -> Encryption
pub fn build(self) -> Encryption
The encryption built so far.
Trait Implementations§
Source§impl Clone for EncryptionBuilder
impl Clone for EncryptionBuilder
Auto Trait Implementations§
impl Freeze for EncryptionBuilder
impl RefUnwindSafe for EncryptionBuilder
impl Send for EncryptionBuilder
impl Sync for EncryptionBuilder
impl Unpin for EncryptionBuilder
impl UnsafeUnpin for EncryptionBuilder
impl UnwindSafe for EncryptionBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.