Struct stry_common::models::Story[][src]

pub struct Story {
    pub id: Id,
    pub name: String,
    pub summary: String,
    pub rating: Rating,
    pub state: State,
    pub authors: Vec<User>,
    pub commissioners: Vec<User>,
    pub dedicatees: Vec<User>,
    pub origins: Vec<Origin>,
    pub warnings: Vec<Warning>,
    pub pairings: Vec<Pairing>,
    pub characters: Vec<Character>,
    pub tags: Vec<Tag>,
    pub series: Option<Series>,
    pub chapters: Option<Vec<Chapter>>,
    pub words: i32,
    pub comments: Vec<Comment>,
    pub created: DateTime<Utc>,
    pub updated: DateTime<Utc>,
}

Fields

id: Idname: Stringsummary: Stringrating: Ratingstate: Stateauthors: Vec<User>commissioners: Vec<User>dedicatees: Vec<User>origins: Vec<Origin>warnings: Vec<Warning>pairings: Vec<Pairing>characters: Vec<Character>tags: Vec<Tag>series: Option<Series>

Variant

Is None when this type is used indirectly (ie in another entity).

chapters: Option<Vec<Chapter>>

Variant

Is None when this type is used indirectly (ie in another entity).

words: i32comments: Vec<Comment>created: DateTime<Utc>updated: DateTime<Utc>

Trait Implementations

impl Clone for Story[src]

impl Debug for Story[src]

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

impl Eq for Story[src]

impl Hash for Story[src]

impl Ord for Story[src]

impl PartialEq<Story> for Story[src]

impl PartialOrd<Story> for Story[src]

impl Serialize for Story[src]

impl StructuralEq for Story[src]

impl StructuralPartialEq 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: 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> IntoOption for T[src]

impl<T> IntoResult for 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.