pub struct SubjectSubject {
pub id: u32,
pub type: SubjectType,
pub name: String,
pub name_cn: String,
pub images: Image,
pub relation: String,
}Expand description
与条目相关的其他条目信息结构体
记录关联条目(如系列作品、衍生作品等)
Fields§
§id: u32关联条目的唯一标识符
type: SubjectType关联条目的类型
name: String关联条目的原始名称
name_cn: String关联条目的中文名称
images: Image关联条目的图片资源信息
relation: String与当前条目的关系描述
Trait Implementations§
Source§impl Clone for SubjectSubject
impl Clone for SubjectSubject
Source§fn clone(&self) -> SubjectSubject
fn clone(&self) -> SubjectSubject
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 SubjectSubject
impl Debug for SubjectSubject
Source§impl<'de> Deserialize<'de> for SubjectSubject
impl<'de> Deserialize<'de> for SubjectSubject
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 SubjectSubject
impl RefUnwindSafe for SubjectSubject
impl Send for SubjectSubject
impl Sync for SubjectSubject
impl Unpin for SubjectSubject
impl UnwindSafe for SubjectSubject
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