pub struct FictionBook {
pub stylesheets: Vec<Stylesheet>,
pub description: Description,
pub bodies: Vec<Body>,
pub binaries: Vec<Binary>,
}Expand description
Root element
Fields§
§stylesheets: Vec<Stylesheet>This element contains an arbitrary stylesheet that is interpreted by a some processing programs, e.g. text/css stylesheets can be used by XSLT stylesheets to generate better looking html
description: DescriptionBook description
bodies: Vec<Body>Main content of the book, multiple bodies are used for additional information, like footnotes, that do not appear in the main book flow. The first body is presented to the reader by default, and content in the other bodies should be accessible by hyperlinks. Name attribute should describe the meaning of this body, this is optional for the main body.
binaries: Vec<Binary>Any binary data that is required for the presentation of this book in base64 format. Currently only images are used.
Trait Implementations§
Source§impl Clone for FictionBook
impl Clone for FictionBook
Source§fn clone(&self) -> FictionBook
fn clone(&self) -> FictionBook
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 FictionBook
impl Debug for FictionBook
Source§impl<'de> Deserialize<'de> for FictionBook
impl<'de> Deserialize<'de> for FictionBook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FictionBook
impl PartialEq for FictionBook
Source§impl Serialize for FictionBook
impl Serialize for FictionBook
impl StructuralPartialEq for FictionBook
Auto Trait Implementations§
impl Freeze for FictionBook
impl RefUnwindSafe for FictionBook
impl Send for FictionBook
impl Sync for FictionBook
impl Unpin for FictionBook
impl UnwindSafe for FictionBook
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