pub struct EncryptionData {
pub method: String,
pub data: String,
}Expand description
Represents encryption information for EPUB resources
This structure holds information about encrypted resources in an EPUB publication, as defined in the META-INF/encryption.xml file according to the EPUB specification. It describes which resources are encrypted and what encryption method was used.
Fields§
§method: StringThe encryption algorithm URI
This field specifies the encryption method used for the resource. Supported encryption methods:
- IDPF font obfuscation: http://www.idpf.org/2008/embedding
- Adobe font obfuscation: http://ns.adobe.com/pdf/enc#RC
data: StringThe URI of the encrypted resource
This field contains the path/URI to the encrypted resource within the EPUB container. The path is relative to the root of the EPUB container.
Trait Implementations§
Source§impl Clone for EncryptionData
impl Clone for EncryptionData
Source§fn clone(&self) -> EncryptionData
fn clone(&self) -> EncryptionData
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 moreAuto Trait Implementations§
impl Freeze for EncryptionData
impl RefUnwindSafe for EncryptionData
impl Send for EncryptionData
impl Sync for EncryptionData
impl Unpin for EncryptionData
impl UnwindSafe for EncryptionData
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