pub struct Character {Show 15 fields
pub id: i64,
pub name: Name,
pub role: Option<CharacterRole>,
pub image: Image,
pub description: String,
pub gender: Option<Gender>,
pub date_of_birth: Option<Date>,
pub age: Option<String>,
pub blood_type: Option<String>,
pub is_favourite: Option<bool>,
pub is_favourite_blocked: Option<bool>,
pub url: String,
pub favourites: Option<i64>,
pub voice_actors: Option<Vec<Person>>,
pub mod_notes: Option<String>,
/* private fields */
}
Expand description
Represents a character.
Fields§
§id: i64
The ID of the character.
name: Name
The name of the character.
role: Option<CharacterRole>
The role of the character in the story.
image: Image
The image of the character.
description: String
The description of the character.
gender: Option<Gender>
The gender of the character.
date_of_birth: Option<Date>
The date of birth of the character.
age: Option<String>
The age of the character.
blood_type: Option<String>
The blood type of the character.
is_favourite: Option<bool>
Whether the character is a favorite.
is_favourite_blocked: Option<bool>
Whether the character is blocked from being a favorite.
url: String
The URL of the character’s site.
favourites: Option<i64>
The number of favorites the character has.
voice_actors: Option<Vec<Person>>
The voice actors of the character.
mod_notes: Option<String>
The moderator notes for the character.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Character
impl<'de> Deserialize<'de> for Character
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
impl StructuralPartialEq for Character
Auto Trait Implementations§
impl Freeze for Character
impl RefUnwindSafe for Character
impl Send for Character
impl Sync for Character
impl Unpin for Character
impl UnwindSafe for Character
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