pub struct Item {Show 17 fields
pub id: String,
pub id_source: IdSource,
pub feed_url: String,
pub title: Option<String>,
pub url: Option<String>,
pub authors: Vec<String>,
pub published: Option<String>,
pub updated: Option<String>,
pub summary: Option<String>,
pub content: Option<String>,
pub content_format: ContentFormat,
pub content_tokens_est: u32,
pub content_truncated: bool,
pub content_hash: Option<String>,
pub categories: Vec<String>,
pub enclosures: Vec<Enclosure>,
pub guid: Option<String>,
}Expand description
A single feed item / entry.
Fields§
§id: StringStable, deterministic identifier (see crate::identity). Stable across runs.
id_source: IdSource§feed_url: String§title: Option<String>§url: Option<String>Resolved, absolute permalink for the item.
published: Option<String>RFC-3339 UTC publication timestamp. May be null even for a normal item — some
feeds (e.g. Reddit comment .rss) populate only updated. A consumer that
time-filters items should fall back to updated when this is null; rss-cli’s own
--since and newest-first ordering already key on published then updated.
updated: Option<String>RFC-3339 UTC last-updated timestamp. The reliable timestamp for feeds that omit
published (see published).
summary: Option<String>§content: Option<String>Item body in the requested content_format (or null when --content none).
content_format: ContentFormat§content_tokens_est: u32Rough token estimate for content (for agent budgeting). Reflects the truncated
content when content_truncated is true.
content_truncated: booltrue when content was cut short (e.g. by max_content_chars or a response
budget). The body ends with an ellipsis marker; fetch the item via get_item /
rss show without a cap for the full text.
content_hash: Option<String>16-hex SHA-256 of the full, pre-truncation extracted content in the requested
content_format. Stable across runs, so an agent can detect when an item’s body
changed without diffing text. null when content is null (--content none).
categories: Vec<String>§enclosures: Vec<Enclosure>§guid: Option<String>The raw feed-provided guid/id, for reference (not necessarily stable).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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>,
Source§impl JsonSchema for Item
impl JsonSchema for Item
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more