pub struct RecipientPermissions {
pub print: bool,
pub modify: bool,
pub copy: bool,
pub annotate: bool,
pub fill_forms: bool,
pub accessibility: bool,
pub assemble: bool,
pub print_high_quality: bool,
}Expand description
Permissions for certificate-encrypted documents.
Different from password-based permissions, these are per-recipient.
Fields§
§print: boolAllow printing
modify: boolAllow modifying the document
copy: boolAllow copying text and graphics
annotate: boolAllow adding/modifying annotations
fill_forms: boolAllow filling form fields
accessibility: boolAllow content extraction for accessibility
assemble: boolAllow assembling the document
print_high_quality: boolAllow high-quality printing
Implementations§
Source§impl RecipientPermissions
impl RecipientPermissions
Sourcepub fn full_access() -> Self
pub fn full_access() -> Self
Create permissions with all access.
Sourcepub fn print_only() -> Self
pub fn print_only() -> Self
Create print-only permissions.
Trait Implementations§
Source§impl Clone for RecipientPermissions
impl Clone for RecipientPermissions
Source§fn clone(&self) -> RecipientPermissions
fn clone(&self) -> RecipientPermissions
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 RecipientPermissions
impl Debug for RecipientPermissions
Source§impl Default for RecipientPermissions
impl Default for RecipientPermissions
impl Copy for RecipientPermissions
Auto Trait Implementations§
impl Freeze for RecipientPermissions
impl RefUnwindSafe for RecipientPermissions
impl Send for RecipientPermissions
impl Sync for RecipientPermissions
impl Unpin for RecipientPermissions
impl UnsafeUnpin for RecipientPermissions
impl UnwindSafe for RecipientPermissions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().