Enum mobi::headers::ExthRecord
source · pub enum ExthRecord {
Show 47 variants
DrmServerId,
DrmCommerceId,
DrmEbookbaseBookId,
Author,
Publisher,
Imprint,
Description,
Isbn,
Subject,
PublishDate,
Review,
Contributor,
Rights,
Subjectcode,
Type,
Source,
Asin,
VersionNumber,
Sample,
Startreading,
Adult,
RetailPrice,
RetailPriceCurrency,
KF8BoundaryOffset,
CountOfResources,
KF8CoverURI,
DictionaryShortName,
CoverOffset,
ThumbOffset,
HasFakeCover,
CreatorSoftware,
CreatoreMajorVersion,
CreatorMinorVersion,
CreatorBuildNumber,
Watermark,
TamperProofKeys,
FontSignature,
ClippingLimit,
PublisherLimit,
TtsFlag,
IsRented,
BorrowExpirationDate,
Cdetype,
LastUpdateTime,
Title,
Language,
Other(u32),
}
Variants§
DrmServerId
DrmCommerceId
DrmEbookbaseBookId
Author
Publisher
Imprint
Description
Isbn
Subject
PublishDate
Review
Contributor
Rights
Subjectcode
Type
Source
Asin
VersionNumber
Sample
0x0001 if the book content is only a sample of the full book
Startreading
Position (4-byte offset) in file at which to open when first opened
Adult
Mobipocket Creator adds this if Adult only is checked on its GUI; contents: “yes”
RetailPrice
As text, e.g. “4.99”
RetailPriceCurrency
As text, e.g. “USD”
KF8BoundaryOffset
CountOfResources
KF8CoverURI
DictionaryShortName
CoverOffset
Add to first image field in Mobi Header to find PDB record containing the cover image
ThumbOffset
Add to first image field in Mobi Header to find PDB record containing the thumbnail cover image
HasFakeCover
CreatorSoftware
Known Values: 1=mobigen, 2=Mobipocket Creator, 200=kindlegen (Windows), 201=kindlegen (Linux), 202=kindlegen (Mac). Warning: Calibre creates fake creator entries, pretending to be a Linux kindlegen 1.2 (201, 1, 2, 33307) for normal ebooks and a non-public Linux kindlegen 2.0 (201, 2, 0, 101) for periodicals.
CreatoreMajorVersion
CreatorMinorVersion
CreatorBuildNumber
Watermark
TamperProofKeys
Used by the Kindle (and Android app) for generating book-specific PIDs.
FontSignature
ClippingLimit
Integer percentage of the text allowed to be clipped. Usually 10.
PublisherLimit
TtsFlag
1 - Text to Speech disabled; 0 - Text to Speech enabled
IsRented
1 in this field seems to indicate a rental book
BorrowExpirationDate
If this field is removed from a rental, the book says it expired in 1969
Cdetype
PDOC - Personal Doc; EBOK - ebook; EBSP - ebook sample;
LastUpdateTime
Title
Language
Other(u32)
Implementations§
Trait Implementations§
source§impl Clone for ExthRecord
impl Clone for ExthRecord
source§fn clone(&self) -> ExthRecord
fn clone(&self) -> ExthRecord
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExthRecord
impl Debug for ExthRecord
source§impl From<ExthRecord> for u32
impl From<ExthRecord> for u32
source§fn from(r: ExthRecord) -> Self
fn from(r: ExthRecord) -> Self
source§impl From<u32> for ExthRecord
impl From<u32> for ExthRecord
source§impl Hash for ExthRecord
impl Hash for ExthRecord
source§impl Ord for ExthRecord
impl Ord for ExthRecord
source§fn cmp(&self, other: &ExthRecord) -> Ordering
fn cmp(&self, other: &ExthRecord) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<ExthRecord> for ExthRecord
impl PartialEq<ExthRecord> for ExthRecord
source§fn eq(&self, other: &ExthRecord) -> bool
fn eq(&self, other: &ExthRecord) -> bool
source§impl PartialOrd<ExthRecord> for ExthRecord
impl PartialOrd<ExthRecord> for ExthRecord
source§fn partial_cmp(&self, other: &ExthRecord) -> Option<Ordering>
fn partial_cmp(&self, other: &ExthRecord) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ExthRecord
impl Eq for ExthRecord
impl StructuralEq for ExthRecord
impl StructuralPartialEq for ExthRecord
Auto Trait Implementations§
impl RefUnwindSafe for ExthRecord
impl Send for ExthRecord
impl Sync for ExthRecord
impl Unpin for ExthRecord
impl UnwindSafe for ExthRecord
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.