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

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

Fields

name: String

The title of the story, this is not unique as stories are tracked with its Id.

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

Variant

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

chapters: Option<Either<Vec<Existing<Chapter>>, Vec<Id>>>

Variant

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

words: i32

THe sum of all of the chapter’s word counts.

Database Implementation

Do not actually store the value in the database, let it be counted at run time.

comments: Vec<Existing<Comment>>

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