pub struct RssItem {
pub title: String,
pub link: String,
pub author: String,
pub pub_date: String,
pub category: String,
pub description: String,
pub enclosure_url: String,
pub enclosure_type: String,
pub guid: String,
}Expand description
RSS 2.0 统一条目
所有 RSS 订阅源的条目均转换为此格式后再序列化为 XML。 包含 RSS 2.0 规范要求的全部可选字段。
§字段说明
| 字段 | RSS 元素 | 说明 |
|---|---|---|
title | <title> | 条目标题(漫画译名 或 话数标签) |
link | <link> | 条目链接(站内 URL) |
author | <author> | 作者信息(翻译组员名 或 原作作者名) |
pub_date | <pubDate> | RFC 2822 格式发布时间 |
category | <category> | 分类描述(长短篇 + 连载状态) |
description | <description> | HTML 正文(CDATA 包裹) |
enclosure_url | <enclosure url="..."> | 封面图片 URL |
enclosure_type | <enclosure type="..."> | 封面 MIME 类型(通常 image/jpeg) |
guid | <guid> | 唯一标识(漫画 ID 或话数 ID) |
Fields§
§title: StringRSS 条目标题
link: StringRSS 条目链接(完整 URL)
作者信息(组员名或原作作者名)
pub_date: String发布时间(中文格式,如“2024年1月15日20点30分“)
category: String分类描述(长短篇 + 连载状态)
description: StringHTML 正文描述(CDATA 包裹)
enclosure_url: String封面图片 URL
enclosure_type: String封面图片 MIME 类型
guid: String全局唯一标识符
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RssItem
impl RefUnwindSafe for RssItem
impl Send for RssItem
impl Sync for RssItem
impl Unpin for RssItem
impl UnsafeUnpin for RssItem
impl UnwindSafe for RssItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request