Struct rss::Category [] [src]

pub struct Category { /* fields omitted */ }

Represents a category in an RSS feed.

Methods

impl Category
[src]

Return the name of this category.

Examples

use rss::Category;

let mut category = Category::default();
category.set_name("Technology");
assert_eq!(category.name(), "Technology");

Set the name of this category.

Examples

use rss::Category;

let mut category = Category::default();
category.set_name("Technology");

Return the domain of this category.

Examples

use rss::Category;

let mut category = Category::default();
category.set_domain("http://example.com".to_string());
assert_eq!(category.domain(), Some("http://example.com"));

Set the domain of this category.

Examples

use rss::Category;

let mut category = Category::default();
category.set_domain("http://example.com".to_string());

Trait Implementations

impl Debug for Category
[src]

Formats the value using the given formatter.

impl Default for Category
[src]

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

impl Clone for Category
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Category
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.