Skip to main content

ArticleDetail

Struct ArticleDetail 

Source
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

文章创建时间

§authorId: String

发布者Id

§badCnt: u32

反对数

§latestCmtTime: String

文章最后评论时间

§goodCnt: u32

赞同数

§offerPoint: u64

悬赏积分

§thumbnailURL: String

文章缩略图

§stickRemains: u64

置顶序号

§timeAgo: String

发布时间简写

§updateTimeStr: String

文章更新时间

§authorName: 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

文章最后评论者

§tags: 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

文章固定链接

§author: ArticleAuthor

作者用户信息

§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

文章随机数

§authorIntro: String

作者签名

§city: String

发布城市

§IP: String

发布者 IP

§authorURL: String

作者首页地址

§pushOrder: u64

推送 Email 推送顺序

§rewardContent: String

打赏内容

§redditScore: String

reddit分数

§pagination: Option<Pagination>

评论分页信息

§commentViewable: bool

评论是否可见

§revisionCount: u64

文章修改次数

§comments: Vec<ArticleComment>

文章的评论

§niceComments: Vec<ArticleComment>

文章最佳评论

Implementations§

Trait Implementations§

Source§

impl Clone for ArticleDetail

Source§

fn clone(&self) -> ArticleDetail

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ArticleDetail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ArticleDetail

Source§

fn default() -> ArticleDetail

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ArticleDetail

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,