#[non_exhaustive]pub struct Grant {
pub print: PrintRight,
pub extract: bool,
pub fill_forms: bool,
pub annotate: bool,
pub assemble: bool,
pub modify: bool,
}Expand description
What a new handler lets a user without the owner password do: the controls of the Protect
dialog, mapped to /P by Grant::p. Bit 10 (accessibility) is not a field: it is always
set, so a protected file stays readable by assistive technology.
Added in 0.7.0.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.print: PrintRightPrinting.
extract: boolCopy text and images (bit 5).
fill_forms: boolFill in forms and sign (bit 9).
annotate: boolAdd comments (bit 6).
assemble: boolInsert, rotate or delete pages (bit 11).
modify: boolEdit the contents (bit 4).
Implementations§
Trait Implementations§
impl Copy for Grant
impl Eq for Grant
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl Forget for Grant
impl Freeze for Grant
impl Move for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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