pub struct Permissions {
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
What an encrypted document allows a user-password reader to do (ISO 32000-2 Table 22). The owner password allows everything.
Fields§
§print: boolPrint (bit 3).
modify: boolModify contents (bit 4).
copy: boolCopy or extract text and graphics (bit 5).
annotate: boolAdd or modify annotations and fill forms (bit 6).
fill_forms: boolFill in form fields (bit 9).
accessibility: boolExtract for accessibility (bit 10).
assemble: boolAssemble: insert, rotate, delete pages (bit 11).
print_high_quality: boolPrint at full quality (bit 12).
Implementations§
Source§impl Permissions
impl Permissions
Sourcepub const ALL: Permissions
pub const ALL: Permissions
Everything allowed.
Sourcepub fn from_bits(p: u32) -> Permissions
pub fn from_bits(p: u32) -> Permissions
The permissions encoded in a /P value.
Trait Implementations§
Source§impl Clone for Permissions
impl Clone for Permissions
Source§fn clone(&self) -> Permissions
fn clone(&self) -> Permissions
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 moreimpl Copy for Permissions
Source§impl Debug for Permissions
impl Debug for Permissions
Source§impl Default for Permissions
impl Default for Permissions
Source§fn default() -> Permissions
fn default() -> Permissions
Returns the “default value” for a type. Read more
impl Eq for Permissions
Source§impl PartialEq for Permissions
impl PartialEq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations§
impl Freeze for Permissions
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnsafeUnpin for Permissions
impl UnwindSafe for Permissions
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