Struct rss::Item [] [src]

pub struct Item {
    pub title: Option<String>,
    pub link: Option<String>,
    pub description: Option<String>,
    pub author: Option<String>,
    pub categories: Vec<Category>,
    pub comments: Option<String>,
    pub guid: Option<Guid>,
    pub pub_date: Option<String>,
}

RSS 2.0 Specification § Elements of <item>

Examples

use rss::Item;

let item = Item {
    title: Some(String::from("A blog post title")),
    description: Some(String::from("This is a description of the blog post")),
    ..Default::default()
};

Fields

title: Option<String> link: Option<String> description: Option<String> author: Option<String> categories: Vec<Category> comments: Option<String> guid: Option<Guid> pub_date: Option<String>

Trait Implementations

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 Debug for Item
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for Item
[src]

fn default() -> Item

Returns the "default value" for a type. Read more