pub struct Index {
pub id: u32,
pub title: String,
pub desc: String,
pub total: Option<u32>,
pub stat: Stat,
pub created_at: String,
pub updated_at: String,
pub creator: Creator,
pub ban: bool,
pub nsfw: bool,
}Expand description
表示索引的详细信息结构体
包含索引的基本属性、统计数据、创建者信息及状态标识,用于完整描述一个索引的全貌
Fields§
§id: u32索引唯一标识符
title: String索引标题
desc: String索引描述(用于说明索引的主题、目的或内容简介)
total: Option<u32>索引包含的条目总数(可选,可能为None表示未统计)
stat: Stat索引的统计信息(如浏览量、收藏量等)
created_at: String创建时间
updated_at: String最后更新时间(格式同上,记录索引内容最后修改的时间)
creator: Creator索引创建者信息
ban: bool是否被封禁(true表示索引因违规被隐藏或禁止访问)
nsfw: bool是否包含成人内容(true表示索引含不适宜未成年人的内容)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
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 Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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