pub struct CollectionSubject {
pub subject_id: u32,
pub subject_type: SubjectType,
pub rate: u32,
pub type: CollectionType,
pub comment: Option<String>,
pub tags: Vec<String>,
pub ep_status: u32,
pub vol_status: u32,
pub updated_at: String,
pub private: bool,
pub subject: Option<UserSubject>,
}Expand description
用户对条目的收藏详情
包含用户对某个条目的收藏状态、评分、进度等信息,以及关联的条目基本信息
Fields§
§subject_id: u32条目ID
subject_type: SubjectType条目类型
rate: u32评分(1-10分)
type: CollectionType收藏类型
comment: Option<String>评论内容(可选)
标签列表
ep_status: u32剧集进度(已观看集数)
vol_status: u32卷进度(已阅读卷数)
updated_at: String最后更新时间(时间戳字符串)
private: bool是否私密(true表示仅自己可见)
subject: Option<UserSubject>关联的条目详情(可选)
Trait Implementations§
Source§impl Clone for CollectionSubject
impl Clone for CollectionSubject
Source§fn clone(&self) -> CollectionSubject
fn clone(&self) -> CollectionSubject
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 CollectionSubject
impl Debug for CollectionSubject
Source§impl<'de> Deserialize<'de> for CollectionSubject
impl<'de> Deserialize<'de> for CollectionSubject
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 CollectionSubject
impl RefUnwindSafe for CollectionSubject
impl Send for CollectionSubject
impl Sync for CollectionSubject
impl Unpin for CollectionSubject
impl UnwindSafe for CollectionSubject
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