pub struct SubjectCharacter {
pub id: u32,
pub name: String,
pub type: CharacterType,
pub images: SimpleImage,
pub relation: String,
pub actors: Vec<Person>,
}Expand description
与条目相关的角色信息结构体
记录条目中的角色及其配音演员信息
Fields§
§id: u32角色唯一标识符
name: String角色名称
type: CharacterType角色类型
images: SimpleImage角色图片资源信息
relation: String角色与条目的关系
actors: Vec<Person>配音演员列表
Trait Implementations§
Source§impl Clone for SubjectCharacter
impl Clone for SubjectCharacter
Source§fn clone(&self) -> SubjectCharacter
fn clone(&self) -> SubjectCharacter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubjectCharacter
impl Debug for SubjectCharacter
Source§impl<'de> Deserialize<'de> for SubjectCharacter
impl<'de> Deserialize<'de> for SubjectCharacter
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
Auto Trait Implementations§
impl Freeze for SubjectCharacter
impl RefUnwindSafe for SubjectCharacter
impl Send for SubjectCharacter
impl Sync for SubjectCharacter
impl Unpin for SubjectCharacter
impl UnwindSafe for SubjectCharacter
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