pub struct SubjectSmall {
pub id: u32,
pub url: String,
pub type: SubjectType,
pub name: String,
pub name_cn: String,
pub summary: String,
pub air_date: String,
pub air_weekday: u8,
pub rating: Option<SubjectSmallRating>,
pub rank: Option<u32>,
pub images: Image,
pub collection: Option<CollectionStats>,
}Expand description
精简的条目信息结构体,用于列表展示
包含条目核心信息,适用于列表、日历等场景
Fields§
§id: u32条目的唯一标识符
url: String条目的访问链接
type: SubjectType条目的类型
name: String条目的原始名称
name_cn: String条目的中文名称
summary: String条目的简介
air_date: String播出/发布日期
air_weekday: u8播出星期(对应Weekday的id)
rating: Option<SubjectSmallRating>条目的评分信息(可选)
rank: Option<u32>条目的排名(可选)
images: Image条目的图片资源信息
collection: Option<CollectionStats>条目的收藏统计数据(可选)
Trait Implementations§
Source§impl Clone for SubjectSmall
impl Clone for SubjectSmall
Source§fn clone(&self) -> SubjectSmall
fn clone(&self) -> SubjectSmall
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 SubjectSmall
impl Debug for SubjectSmall
Source§impl<'de> Deserialize<'de> for SubjectSmall
impl<'de> Deserialize<'de> for SubjectSmall
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 SubjectSmall
impl RefUnwindSafe for SubjectSmall
impl Send for SubjectSmall
impl Sync for SubjectSmall
impl Unpin for SubjectSmall
impl UnwindSafe for SubjectSmall
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