Struct epub::archive::EpubArchive[][src]

pub struct EpubArchive {
    pub path: PathBuf,
    pub files: Vec<String>,
    // some fields omitted
}

Epub archive struct. Here it's stored the file path and the list of files in the zip archive.

Fields

Methods

impl EpubArchive
[src]

Opens the epub file in path.

Errors

Returns an error if the zip is broken or if the file doesn't exists.

Returns the content of the file by the name as Vec<u8>.

Errors

Returns an error if the name doesn't exists in the zip archive.

Returns the content of the file by the name as String.

Errors

Returns an error if the name doesn't exists in the zip archive.

Returns the content of container file "META-INF/container.xml".

Errors

Returns an error if the epub doesn't have the container file.

Auto Trait Implementations

impl Send for EpubArchive

impl Sync for EpubArchive