pub struct ArticleDetail {Show 72 fields
pub showInList: bool,
pub createTime: String,
pub authorId: String,
pub badCnt: u32,
pub latestCmtTime: String,
pub goodCnt: u32,
pub offerPoint: u64,
pub thumbnailURL: String,
pub stickRemains: u64,
pub timeAgo: String,
pub updateTimeStr: String,
pub authorName: String,
pub type_: ArticleType,
pub offered: bool,
pub createTimeStr: String,
pub viewCnt: u64,
pub thumbnailURL20: String,
pub watchCnt: u64,
pub previewContent: String,
pub titleEmoj: String,
pub titleEmojUnicode: String,
pub title: String,
pub thumbnailURL48: String,
pub commentCnt: u64,
pub collectCnt: u64,
pub latestCmterName: String,
pub tags: String,
pub oId: String,
pub cmtTimeAgo: String,
pub stick: u64,
pub tagObjs: Vec<ArticleTag>,
pub latestCmtTimeStr: String,
pub anonymous: bool,
pub thankCnt: u64,
pub updateTime: String,
pub status: ArticleStatus,
pub heat: u64,
pub perfect: bool,
pub thumbnailURL210: String,
pub permalink: String,
pub author: ArticleAuthor,
pub thankedCnt: u64,
pub anonymousView: u64,
pub viewCntFormat: String,
pub commentable: bool,
pub rewarded: bool,
pub rewardedCnt: u64,
pub rewardPoint: u64,
pub isFollowing: bool,
pub isWatching: bool,
pub isMyArticle: bool,
pub thanked: bool,
pub editorType: u64,
pub audioURL: String,
pub table: String,
pub content: String,
pub source: String,
pub img1URL: String,
pub vote: VoteStatus,
pub randomDouble: f64,
pub authorIntro: String,
pub city: String,
pub IP: String,
pub authorURL: String,
pub pushOrder: u64,
pub rewardContent: String,
pub redditScore: String,
pub pagination: Option<Pagination>,
pub commentViewable: bool,
pub revisionCount: u64,
pub comments: Vec<ArticleComment>,
pub niceComments: Vec<ArticleComment>,
}Expand description
文章详情
Fields§
§showInList: bool是否在列表展示
createTime: String文章创建时间
发布者Id
badCnt: u32反对数
latestCmtTime: String文章最后评论时间
goodCnt: u32赞同数
offerPoint: u64悬赏积分
thumbnailURL: String文章缩略图
stickRemains: u64置顶序号
timeAgo: String发布时间简写
updateTimeStr: String文章更新时间
作者用户名
type_: ArticleType文章类型
offered: bool是否悬赏
createTimeStr: String文章创建时间字符串
viewCnt: u64文章浏览数
thumbnailURL20: String作者头像缩略图
watchCnt: u64关注数
previewContent: String文章预览内容
titleEmoj: String文章标题
titleEmojUnicode: String文章标题(Unicode 的 Emoji)
title: String文章标题
thumbnailURL48: String作者头像缩略图
commentCnt: u64文章评论数
collectCnt: u64收藏数
latestCmterName: String文章最后评论者
文章标签
oId: String文章 id
cmtTimeAgo: String最后评论时间简写
stick: u64是否置顶
tagObjs: Vec<ArticleTag>文章标签信息
latestCmtTimeStr: String文章最后评论时间
anonymous: bool是否匿名
thankCnt: u64文章感谢数
updateTime: String文章更新时间
status: ArticleStatus文章状态
heat: u64文章点击数
perfect: bool文章是否优选
thumbnailURL210: String作者头像缩略图
permalink: String文章固定链接
作者用户信息
thankedCnt: u64文章感谢数
anonymousView: u64文章匿名浏览量
viewCntFormat: String文章浏览量简写
commentable: bool文章是否启用评论
rewarded: bool是否已打赏
rewardedCnt: u64打赏人数
rewardPoint: u64文章打赏积分
isFollowing: bool是否已收藏
isWatching: bool是否已关注
isMyArticle: bool是否是我的文章
thanked: bool是否已感谢
editorType: u64编辑器类型
audioURL: String文章音频地址
table: String文章目录 HTML
content: String文章内容 HTML
source: String文章内容 Markdown
img1URL: String文章缩略图
vote: VoteStatus文章点赞状态
randomDouble: f64文章随机数
作者签名
city: String发布城市
IP: String发布者 IP
作者首页地址
pushOrder: u64推送 Email 推送顺序
rewardContent: String打赏内容
redditScore: Stringreddit分数
pagination: Option<Pagination>评论分页信息
commentViewable: bool评论是否可见
revisionCount: u64文章修改次数
comments: Vec<ArticleComment>文章的评论
niceComments: Vec<ArticleComment>文章最佳评论
Implementations§
Source§impl ArticleDetail
impl ArticleDetail
pub fn from_value(data: &Value) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for ArticleDetail
impl Clone for ArticleDetail
Source§fn clone(&self) -> ArticleDetail
fn clone(&self) -> ArticleDetail
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 ArticleDetail
impl Debug for ArticleDetail
Source§impl Default for ArticleDetail
impl Default for ArticleDetail
Source§fn default() -> ArticleDetail
fn default() -> ArticleDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArticleDetailwhere
ArticleDetail: Default,
impl<'de> Deserialize<'de> for ArticleDetailwhere
ArticleDetail: Default,
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 ArticleDetail
impl RefUnwindSafe for ArticleDetail
impl Send for ArticleDetail
impl Sync for ArticleDetail
impl Unpin for ArticleDetail
impl UnsafeUnpin for ArticleDetail
impl UnwindSafe for ArticleDetail
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