pub struct EpubMeta {
pub title: String,
pub authors: Vec<String>,
pub language: String,
pub publisher: String,
pub year: String,
pub cover_href: Option<String>,
}Expand description
书籍元数据(取不到的字段为空串 / None)。
Fields§
§title: String§language: String§publisher: String§year: String从 dc:date 里取的四位年份。
cover_href: Option<String>封面在包内的路径(POSIX,相对包根)。
Trait Implementations§
impl Eq for EpubMeta
impl StructuralPartialEq for EpubMeta
Auto Trait Implementations§
impl Freeze for EpubMeta
impl RefUnwindSafe for EpubMeta
impl Send for EpubMeta
impl Sync for EpubMeta
impl Unpin for EpubMeta
impl UnsafeUnpin for EpubMeta
impl UnwindSafe for EpubMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.