#[non_exhaustive]pub struct EncryptionInfo {
pub filter: String,
pub v: i32,
pub r: i32,
pub o: Vec<u8>,
pub u: Vec<u8>,
pub p: i32,
pub length: Option<i32>,
pub ue: Option<Vec<u8>>,
pub oe: Option<Vec<u8>>,
/* private fields */
}Expand description
Encryption information extracted from PDF trailer.
#[non_exhaustive]: this is parser output, not meant to be constructed by
downstream code. The attribute lets future fields (like cfm, added for
issue #364) be added without a breaking change.
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.filter: StringFilter name (should be “Standard”)
v: i32V entry (algorithm version)
r: i32R entry (revision)
o: Vec<u8>O entry (owner password hash)
u: Vec<u8>U entry (user password hash)
p: i32P entry (permissions)
length: Option<i32>Length entry (key length in bits)
ue: Option<Vec<u8>>UE entry (encrypted user key, R5/R6 only)
oe: Option<Vec<u8>>OE entry (encrypted owner key, R5/R6 only)
Trait Implementations§
Source§impl Clone for EncryptionInfo
impl Clone for EncryptionInfo
Source§fn clone(&self) -> EncryptionInfo
fn clone(&self) -> EncryptionInfo
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 moreAuto Trait Implementations§
impl Freeze for EncryptionInfo
impl RefUnwindSafe for EncryptionInfo
impl Send for EncryptionInfo
impl Sync for EncryptionInfo
impl Unpin for EncryptionInfo
impl UnsafeUnpin for EncryptionInfo
impl UnwindSafe for EncryptionInfo
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