[][src]Struct story_dl::models::Story

pub struct Story {
    pub name: String,
    pub summary: String,
    pub language: Language,
    pub rating: Rating,
    pub state: State,
    pub chapters: Vec<Chapter>,
    pub words: u32,
    pub authors: Vec<String>,
    pub origins: Vec<String>,
    pub tags: Vec<(TagType, String)>,
    pub series: Option<Series>,
    pub created: DateTime<Utc>,
    pub updated: DateTime<Utc>,
}

Fields

name: Stringsummary: Stringlanguage: Languagerating: Ratingstate: Statechapters: Vec<Chapter>words: u32authors: Vec<String>origins: Vec<String>tags: Vec<(TagType, String)>series: Option<Series>created: DateTime<Utc>updated: DateTime<Utc>

Methods

impl Story[src]

pub fn new(details: Details) -> Story[src]

pub fn to_buffer(&self, format: Format, buff: &mut [u8]) -> Result<(), Error>[src]

pub fn to_writer(
    &self,
    format: Format,
    writer: &mut impl Write
) -> Result<(), Error>
[src]

Trait Implementations

impl Clone for Story[src]

impl Debug for Story[src]

impl<'de> Deserialize<'de> for Story[src]

impl Serialize for Story[src]

Auto Trait Implementations

impl RefUnwindSafe for Story

impl Send for Story

impl Sync for Story

impl Unpin for Story

impl UnwindSafe for Story

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: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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