[][src]Struct bookbinder::deserialization::DeserializableBookSrc

pub struct DeserializableBookSrc<'a> {
    pub title: Cow<'a, str>,
    pub halftitle: Option<Cow<'a, str>>,
    pub do_not_generate_halftitle: bool,
    pub do_not_generate_titlepage: bool,
    pub do_not_generate_copyrightpage: bool,
    pub authors: Option<Vec<Cow<'a, str>>>,
    pub translators: Option<Vec<Cow<'a, str>>>,
    pub editors: Option<Vec<Cow<'a, str>>>,
    pub cover_designer: Option<Cow<'a, str>>,
    pub author_photo_copyright_holder: Option<Cow<'a, str>>,
    pub shorttitle: Option<Cow<'a, str>>,
    pub subtitle: Option<Cow<'a, str>>,
    pub paperback_isbn: Option<Cow<'a, str>>,
    pub epub_isbn: Option<Cow<'a, str>>,
    pub hardback_isbn: Option<Cow<'a, str>>,
    pub publisher: Option<Cow<'a, str>>,
    pub publisher_address: Option<Cow<'a, str>>,
    pub publisher_url: Option<Cow<'a, str>>,
    pub print_location: Option<Cow<'a, str>>,
    pub copyright_statement: Option<Cow<'a, str>>,
    pub do_not_assert_moral_rights: bool,
    pub is_not_first_publication: bool,
    pub dedication: Option<Cow<'a, str>>,
    pub colophon: Option<Cow<'a, str>>,
    pub forewords: Vec<AuthoredAncillaryText<'a>>,
    pub afterwords: Vec<AuthoredAncillaryText<'a>>,
    pub introductions: Vec<AuthoredAncillaryText<'a>>,
    pub preface: Option<UnauthoredAncillaryText<'a>>,
    pub acknowledgements: Option<UnauthoredAncillaryText<'a>>,
    pub appendices: Vec<UnauthoredAncillaryText<'a>>,
    pub mainmatter: Vec<PathOrString<'a>>,
    pub epigraphs: Vec<Epigraph<'a>>,
}

A simplified representation of a book source for easy deserializing.

The only required values are title and mainmatter.

Fields

title: Cow<'a, str>

The title of the book

halftitle: Option<Cow<'a, str>>

Optional custom halftitle

do_not_generate_halftitle: bool

Whether to not generate a halftitle if it has not been set explicitly

do_not_generate_titlepage: booldo_not_generate_copyrightpage: boolauthors: Option<Vec<Cow<'a, str>>>translators: Option<Vec<Cow<'a, str>>>editors: Option<Vec<Cow<'a, str>>>cover_designer: Option<Cow<'a, str>>author_photo_copyright_holder: Option<Cow<'a, str>>shorttitle: Option<Cow<'a, str>>subtitle: Option<Cow<'a, str>>paperback_isbn: Option<Cow<'a, str>>epub_isbn: Option<Cow<'a, str>>hardback_isbn: Option<Cow<'a, str>>publisher: Option<Cow<'a, str>>publisher_address: Option<Cow<'a, str>>publisher_url: Option<Cow<'a, str>>print_location: Option<Cow<'a, str>>copyright_statement: Option<Cow<'a, str>>do_not_assert_moral_rights: boolis_not_first_publication: booldedication: Option<Cow<'a, str>>colophon: Option<Cow<'a, str>>forewords: Vec<AuthoredAncillaryText<'a>>afterwords: Vec<AuthoredAncillaryText<'a>>introductions: Vec<AuthoredAncillaryText<'a>>preface: Option<UnauthoredAncillaryText<'a>>acknowledgements: Option<UnauthoredAncillaryText<'a>>appendices: Vec<UnauthoredAncillaryText<'a>>mainmatter: Vec<PathOrString<'a>>epigraphs: Vec<Epigraph<'a>>

Trait Implementations

impl<'a> Debug for DeserializableBookSrc<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for DeserializableBookSrc<'a>[src]

impl<'a> TryFrom<DeserializableBookSrc<'a>> for BookSrc<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,