pub struct CoverImageOptions {
pub prefer_manifest_cover: bool,
pub include_guide_refs: bool,
pub parse_cover_documents: bool,
pub max_cover_document_bytes: usize,
pub image: ImageReadOptions,
}Expand description
Strategy options for EPUB cover image discovery.
Fields§
§prefer_manifest_cover: boolWhether to prefer manifest-declared cover items before guide refs.
include_guide_refs: boolWhether to inspect EPUB2 <guide type="cover"> refs.
parse_cover_documents: boolWhether to parse XHTML/HTML cover documents for nested <img>/<svg:image> refs.
max_cover_document_bytes: usizeHard cap for cover-document XHTML payload bytes.
image: ImageReadOptionsImage payload read options.
Trait Implementations§
Source§impl Clone for CoverImageOptions
impl Clone for CoverImageOptions
Source§fn clone(&self) -> CoverImageOptions
fn clone(&self) -> CoverImageOptions
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 moreSource§impl Debug for CoverImageOptions
impl Debug for CoverImageOptions
Source§impl Default for CoverImageOptions
impl Default for CoverImageOptions
Source§impl PartialEq for CoverImageOptions
impl PartialEq for CoverImageOptions
impl Copy for CoverImageOptions
impl Eq for CoverImageOptions
impl StructuralPartialEq for CoverImageOptions
Auto Trait Implementations§
impl Freeze for CoverImageOptions
impl RefUnwindSafe for CoverImageOptions
impl Send for CoverImageOptions
impl Sync for CoverImageOptions
impl Unpin for CoverImageOptions
impl UnsafeUnpin for CoverImageOptions
impl UnwindSafe for CoverImageOptions
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