pub struct Subject {Show 18 fields
pub id: u32,
pub type: SubjectType,
pub name: String,
pub name_cn: String,
pub summary: String,
pub series: bool,
pub nsfw: bool,
pub locked: bool,
pub date: Option<String>,
pub platform: String,
pub images: Image,
pub infobox: InfoBox,
pub volumes: u32,
pub eps: u32,
pub rating: Rating,
pub collection: CollectionStats,
pub meta_tags: Vec<String>,
pub tags: Vec<SubjectTag>,
}Expand description
内容条目的核心数据结构,包含条目的详细信息
存储各类内容(动画、书籍等)的完整属性信息
Fields§
§id: u32条目的唯一标识符
type: SubjectType条目的类型(如动画、书籍等)
name: String条目的原始名称(通常为外文原名)
name_cn: String条目的中文名称
summary: String条目的详细简介
series: bool是否为系列作品
nsfw: bool是否包含不适宜内容(Not Safe For Work)
locked: bool是否被锁定(禁止编辑)
date: Option<String>条目相关日期(如发布日期、首播日期等,可选)
platform: String条目对应的平台(如游戏平台、播放平台等)
images: Image条目的图片资源信息
infobox: InfoBox条目的信息框内容(结构化属性)
volumes: u32卷数(主要用于书籍类条目)
eps: u32集数(主要用于动画、剧集类条目)
rating: Rating条目的评分信息
collection: CollectionStats条目的收藏统计数据
元标签列表(系统级标签)
用户标签列表(包含标签统计信息)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subject
impl<'de> Deserialize<'de> for Subject
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 Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
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