[][src]Struct bookbinder::deserialization::DeserializableBook

pub struct DeserializableBook<'a> {
    pub src: DeserializableBookSrc<'a>,
    pub options: UnifiedOptions,
}

Deserializable container for a book's source and options; note that these are flattened when deserialized, so that keys for both options and src are at the same level in the same json object.

let json = r#"{"title": "Hello World", "mainmatter": ["Text goes here"], "suppress_footers": true}"#;
let book: DeserializableBook = serde_json::from_str(json).unwrap();

Fields

src: DeserializableBookSrc<'a>options: UnifiedOptions

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for DeserializableBook<'a>

impl<'a> Send for DeserializableBook<'a>

impl<'a> Sync for DeserializableBook<'a>

impl<'a> Unpin for DeserializableBook<'a>

impl<'a> UnwindSafe for DeserializableBook<'a>

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>,