pub struct FeedRef<'a> { /* private fields */ }
Expand description
A Feed
implemented with a borrowed reference to a JSON object.
Implementations§
Source§impl<'a> FeedRef<'a>
impl<'a> FeedRef<'a>
Sourcepub fn version(&self) -> Result<Option<&str>, Error>
pub fn version(&self) -> Result<Option<&str>, Error>
The required URL formatted version identifier.
Identifies what version of the spec the feed is suppose to be compliant with.
Sourcepub fn home_page_url(&self) -> Result<Option<&str>, Error>
pub fn home_page_url(&self) -> Result<Option<&str>, Error>
The optional URL which the feed is suppose to represent.
Sourcepub fn feed_url(&self) -> Result<Option<&str>, Error>
pub fn feed_url(&self) -> Result<Option<&str>, Error>
The optional URL which this feed can be retrieived from.
Sourcepub fn user_comment(&self) -> Result<Option<&str>, Error>
pub fn user_comment(&self) -> Result<Option<&str>, Error>
An optional meta description about the feed only intended to be viewed in the raw JSON form.
Sourcepub fn icon(&self) -> Result<Option<&str>, Error>
pub fn icon(&self) -> Result<Option<&str>, Error>
An optional URL to an icon for use in a list of items.
Sourcepub fn favicon(&self) -> Result<Option<&str>, Error>
pub fn favicon(&self) -> Result<Option<&str>, Error>
An optional URL to a favicon suitable for use in a list of feeds.
An optional author.
§Deprecation
The author
field is deprecated in favor of the authors
field as of JSON Feed 1.1.
An optional array of authors.
Sourcepub fn language(&self) -> Result<Option<&str>, Error>
pub fn language(&self) -> Result<Option<&str>, Error>
The optional language which the feed data is written in.
Valid values are from RFC 5646.
Sourcepub fn expired(&self) -> Result<Option<bool>, Error>
pub fn expired(&self) -> Result<Option<bool>, Error>
Optionally determines if the feed will be updated in the future.
If true, the feed will not be updated in the future. If false or None
, then the feed may be updated in the future.