pub struct Story {Show 16 fields
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: StringThe title of the story, this is not unique as stories are tracked
with its Id.
summary: String§rating: Rating§state: State§commissioners: Vec<Existing<User>>§dedicatees: Vec<Existing<User>>§origins: Vec<Existing<Origin>>§warnings: Vec<Existing<Warning>>§pairings: Vec<Existing<Pairing>>§characters: Vec<Existing<Character>>§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: i32THe 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§
Source§impl<'de> Deserialize<'de> for Story
impl<'de> Deserialize<'de> for Story
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 Ord for Story
impl Ord for Story
Source§impl PartialOrd for Story
impl PartialOrd for Story
impl Eq for Story
impl StructuralPartialEq for Story
Auto Trait Implementations§
impl Freeze for Story
impl RefUnwindSafe for Story
impl Send for Story
impl Sync for Story
impl Unpin for Story
impl UnwindSafe for Story
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption for T
impl<T> IntoOption for T
Source§fn some_if(self, predicate: bool) -> Option<Self>
fn some_if(self, predicate: bool) -> Option<Self>
Results
Some(self) if the predicate returns true, or None otherwise.Source§fn with_some_if<F>(self, predicate: F) -> Option<Self>
fn with_some_if<F>(self, predicate: F) -> Option<Self>
Results
Some(self) if the predicate returns true, or None otherwise.Source§impl<T> IntoResult for T
impl<T> IntoResult for T
Source§fn ok_if<E>(self, predicate: bool, err: E) -> Result<Self, E>
fn ok_if<E>(self, predicate: bool, err: E) -> Result<Self, E>
Results
Ok(self) if the predicate returns true, or Err(err) otherwise.Source§fn with_ok_if<F, E>(self, predicate: F, err: E) -> Result<Self, E>
fn with_ok_if<F, E>(self, predicate: F, err: E) -> Result<Self, E>
Results
Ok(self) if the predicate returns true, or Err(err) otherwise.Source§impl<T> Peep for T
impl<T> Peep for T
Source§impl<T> Wrap for T
impl<T> Wrap for T
Source§fn wrap_ref<F>(self, wrap: F) -> Selfwhere
F: FnOnce(&Self),
fn wrap_ref<F>(self, wrap: F) -> Selfwhere
F: FnOnce(&Self),
Turns a self reference function call into an ‘inline’/‘builder’ call. Read more