pub struct PdfPermissions {
pub allow_printing: bool,
pub allow_modify_contents: bool,
pub allow_copy: bool,
pub allow_modify_annotations: bool,
pub allow_fill_forms: bool,
pub allow_extract_for_accessibility: bool,
pub allow_assemble: bool,
pub allow_print_high_quality: bool,
}
Expand description
PDF permissions configuration.
Fields§
§allow_printing: bool
Allow printing
allow_modify_contents: bool
Allow modifying the document
allow_copy: bool
Allow copying text and graphics
allow_modify_annotations: bool
Allow adding or modifying annotations
allow_fill_forms: bool
Allow filling in form fields
allow_extract_for_accessibility: bool
Allow extracting text and graphics for accessibility
allow_assemble: bool
Allow assembling the document
allow_print_high_quality: bool
Allow high-quality printing
Implementations§
Trait Implementations§
Source§impl Clone for PdfPermissions
impl Clone for PdfPermissions
Source§fn clone(&self) -> PdfPermissions
fn clone(&self) -> PdfPermissions
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 PdfPermissions
impl Debug for PdfPermissions
Source§impl Default for PdfPermissions
impl Default for PdfPermissions
Source§impl<'de> Deserialize<'de> for PdfPermissions
impl<'de> Deserialize<'de> for PdfPermissions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PdfPermissions
impl RefUnwindSafe for PdfPermissions
impl Send for PdfPermissions
impl Sync for PdfPermissions
impl Unpin for PdfPermissions
impl UnwindSafe for PdfPermissions
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 more