[−][src]Struct mobi::Mobi
Structure that holds parsed ebook information and contents
Fields
contents: Vec<u8>
header: Header
records: Vec<Record>
palmdoc: PalmDocHeader
mobi: MobiHeader
exth: ExtHeader
Methods
impl Mobi
[src]
pub fn init(file_path: &Path) -> Mobi
[src]
Construct a Mobi object from passed file path
pub fn author(&self) -> Option<&String>
[src]
Returns author record if such exists
pub fn publisher(&self) -> Option<&String>
[src]
Returns publisher record if such exists
pub fn description(&self) -> Option<&String>
[src]
Returns description record if such exists
pub fn isbn(&self) -> Option<&String>
[src]
Returns isbn record if such exists
pub fn publish_date(&self) -> Option<&String>
[src]
Returns publish_date record if such exists
pub fn contributor(&self) -> Option<&String>
[src]
Returns contributor record if such exists
pub fn title(&self) -> Option<&String>
[src]
Returns title record if such exists
Trait Implementations
Auto Trait Implementations
impl Unpin for Mobi
impl Sync for Mobi
impl Send for Mobi
impl UnwindSafe for Mobi
impl RefUnwindSafe for Mobi
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,