[−][src]Struct json_feed_model::FeedRef
A Feed
implemented with a borrowed reference to a JSON object.
Implementations
impl<'a> FeedRef<'a>
[src]
impl<'a> FeedRef<'a>
[src]
pub fn to_feed(&self) -> Feed
[src]
Clones the inner Map
reference and returns an owned type.
pub fn version(&self) -> Result<Option<&str>, Error>
[src]
The required URL formatted version identifier.
Identifies what version of the spec the feed is suppose to be compliant with.
pub fn title(&self) -> Result<Option<&str>, Error>
[src]
The optional name of the feed.
pub fn home_page_url(&self) -> Result<Option<&str>, Error>
[src]
The optional URL which the feed is suppose to represent.
pub fn feed_url(&self) -> Result<Option<&str>, Error>
[src]
The optional URL which this feed can be retrieived from.
pub fn description(&self) -> Result<Option<&str>, Error>
[src]
An optional description of the feed.
pub fn user_comment(&self) -> Result<Option<&str>, Error>
[src]
An optional meta description about the feed only intended to be viewed in the raw JSON form.
pub fn next_url(&self) -> Result<Option<&str>, Error>
[src]
An optional pagination URL.
pub fn icon(&self) -> Result<Option<&str>, Error>
[src]
An optional URL to an icon for use in a list of items.
pub fn favicon(&self) -> Result<Option<&str>, Error>
[src]
An optional URL to a favicon suitable for use in a list of feeds.
pub fn author(&self) -> Result<Option<AuthorRef<'_>>, Error>
[src]
An optional author.
Deprecation
The author
field is deprecated in favor of the authors
field as of JSON Feed 1.1.
pub fn authors(&self) -> Result<Option<Vec<AuthorRef<'_>>>, Error>
[src]
An optional array of authors.
pub fn language(&self) -> Result<Option<&str>, Error>
[src]
The optional language which the feed data is written in.
Valid values are from RFC 5646.
pub fn expired(&self) -> Result<Option<bool>, Error>
[src]
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.
pub fn hubs(&self) -> Result<Option<Vec<HubRef<'_>>>, Error>
[src]
Optional subscription endpoints which can be used to received feed update notifications.
pub fn items(&self) -> Result<Option<Vec<ItemRef<'_>>>, Error>
[src]
A required array of Items
.
impl<'a> FeedRef<'a>
[src]
pub fn is_valid(&self, version: &Version<'_>) -> bool
[src]
Verifies if the JSON data complies with a specific Version
of the JSON Feed spec.
Trait Implementations
impl<'a> AsRef<Map<String, Value>> for FeedRef<'a>
[src]
impl<'a> Debug for FeedRef<'a>
[src]
impl<'a> Eq for FeedRef<'a>
[src]
impl<'a> From<&'a Map<String, Value>> for FeedRef<'a>
[src]
impl<'a> From<&'a mut Map<String, Value>> for FeedRef<'a>
[src]
impl<'a> PartialEq<FeedRef<'a>> for FeedRef<'a>
[src]
fn eq(&self, other: &FeedRef<'_>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> PartialEq<Map<String, Value>> for FeedRef<'a>
[src]
fn eq(&self, other: &Map<String, Value>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> Serialize for FeedRef<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for FeedRef<'a>
impl<'a> Send for FeedRef<'a>
impl<'a> Sync for FeedRef<'a>
impl<'a> Unpin for FeedRef<'a>
impl<'a> UnwindSafe for FeedRef<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,