pub struct InReplyTo {
pub ref_: Option<SmallString>,
pub href: Option<Url>,
pub type_: Option<MimeType>,
pub source: Option<Url>,
}Expand description
Atom Threading Extensions (RFC 4685) in-reply-to element
Represents a reference to another entry that this entry is a reply to.
Namespace URI: http://purl.org/syndication/thread/1.0
§Examples
use feedparser_rs::InReplyTo;
let reply = InReplyTo {
ref_: Some("tag:example.com,2024:post/1".into()),
href: Some("https://example.com/post/1".into()),
type_: Some("text/html".into()),
source: Some("https://example.com/feed.xml".into()),
};
assert_eq!(reply.ref_.as_deref(), Some("tag:example.com,2024:post/1"));Fields§
§ref_: Option<SmallString>IRI of the entry being replied to (ref attribute)
Required by RFC 4685, but we tolerate missing values (bozo pattern).
Empty-string values from malformed feeds are normalized to None.
Field named ref_ to avoid Rust keyword clash.
href: Option<Url>URL where the referenced entry can be found (href attribute)
§Security
This URL comes from untrusted feed input and has NOT been validated. Applications MUST validate URLs before fetching to prevent SSRF.
type_: Option<MimeType>MIME type of the linked resource (type attribute)
Field named type_ to avoid Rust keyword clash.
source: Option<Url>IRI of the feed containing the referenced entry (source attribute)
Not to be confused with Entry::source
which is the RSS/Atom source feed reference. This field is the
RFC 4685 source attribute: an IRI identifying the feed that
contains the entry being replied to.
§Security
This URL comes from untrusted feed input and has NOT been validated. Applications MUST validate URLs before fetching to prevent SSRF.