#[non_exhaustive]pub struct ConvertOptions {
pub format: Option<Format>,
pub pictures: PictureOptions,
pub limits: ConvertLimits,
pub write: WriteOptions,
}Expand description
How a source is converted. Start from ConvertOptions::default and
change the fields that matter.
§Examples
use mbook_converter::{ConvertOptions, Format};
let mut options = ConvertOptions::default();
options.format = Some(Format::Fb2);
options.pictures.quality = 60;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: Option<Format>The format of the source. None, the default, detects it from the
content.
pictures: PictureOptionsHow pictures are encoded.
limits: ConvertLimitsBounds on what a source may ask for.
write: WriteOptionsHow the mbook file is written by Converter::convert and
Converter::convert_slice.
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
impl Copy for ConvertOptions
Source§impl Debug for ConvertOptions
impl Debug for ConvertOptions
Source§impl Default for ConvertOptions
impl Default for ConvertOptions
impl Eq for ConvertOptions
Source§impl PartialEq for ConvertOptions
impl PartialEq for ConvertOptions
impl StructuralPartialEq for ConvertOptions
Auto Trait Implementations§
impl Forget for ConvertOptions
impl Freeze for ConvertOptions
impl Move for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more