pub struct CharacterPerson {
pub id: u32,
pub name: String,
pub type: CharacterType,
pub images: SimpleImage,
pub subject_id: u32,
pub subject_type: SubjectType,
pub subject_name: String,
pub subject_name_cn: String,
pub staff: String,
}Expand description
角色与人物关联结构
表示角色与配音演员或创作者的关联信息
Fields§
§id: u32角色ID
name: String角色名称
type: CharacterType角色类型
images: SimpleImage角色图片信息
subject_id: u32关联的条目ID
subject_type: SubjectType关联的条目类型
subject_name: String关联条目的原名
subject_name_cn: String关联条目的中文名
staff: String人物在条目中的职位或角色
Trait Implementations§
Source§impl Clone for CharacterPerson
impl Clone for CharacterPerson
Source§fn clone(&self) -> CharacterPerson
fn clone(&self) -> CharacterPerson
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 CharacterPerson
impl Debug for CharacterPerson
Source§impl<'de> Deserialize<'de> for CharacterPerson
impl<'de> Deserialize<'de> for CharacterPerson
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 CharacterPerson
impl RefUnwindSafe for CharacterPerson
impl Send for CharacterPerson
impl Sync for CharacterPerson
impl Unpin for CharacterPerson
impl UnwindSafe for CharacterPerson
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