Struct jsonfeed::Item
[−]
[src]
pub struct Item { pub id: String, pub url: Option<String>, pub external_url: Option<String>, pub title: Option<String>, pub content: Content, pub summary: Option<String>, pub image: Option<String>, pub banner_image: Option<String>, pub date_published: Option<String>, pub date_modified: Option<String>, pub author: Option<Author>, pub tags: Option<Vec<String>>, pub attachments: Option<Vec<Attachment>>, }
Represents an item in a feed
Fields
id: String
url: Option<String>
external_url: Option<String>
title: Option<String>
content: Content
summary: Option<String>
image: Option<String>
date_published: Option<String>
date_modified: Option<String>
attachments: Option<Vec<Attachment>>
Methods
impl Item
[src]
fn builder() -> ItemBuilder
Trait Implementations
impl Debug for Item
[src]
impl Clone for Item
[src]
fn clone(&self) -> Item
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Item
[src]
fn eq(&self, __arg_0: &Item) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Item) -> bool
This method tests for !=
.
impl Default for Item
[src]
impl Serialize for Item
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Item
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more