pub struct CollectionPerson {
pub id: u32,
pub name: String,
pub type: PersonType,
pub career: Option<Vec<PersonCareer>>,
pub images: Option<SimpleImage>,
pub created_at: String,
}Expand description
用户收藏的人物信息
表示用户收藏的人物详情,包含人物ID、名称、职业等基本信息
Fields§
§id: u32人物ID
name: String人物名称
type: PersonType人物类型
career: Option<Vec<PersonCareer>>人物职业(可选,如配音演员、导演等)
images: Option<SimpleImage>人物图片信息(可选)
created_at: String收藏时间(时间戳字符串)
Trait Implementations§
Source§impl Clone for CollectionPerson
impl Clone for CollectionPerson
Source§fn clone(&self) -> CollectionPerson
fn clone(&self) -> CollectionPerson
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 CollectionPerson
impl Debug for CollectionPerson
Source§impl<'de> Deserialize<'de> for CollectionPerson
impl<'de> Deserialize<'de> for CollectionPerson
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 CollectionPerson
impl RefUnwindSafe for CollectionPerson
impl Send for CollectionPerson
impl Sync for CollectionPerson
impl Unpin for CollectionPerson
impl UnwindSafe for CollectionPerson
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