Struct rss::Category [] [src]

pub struct Category { /* fields omitted */ }

Represents a category in an RSS feed.

Methods

impl Category
[src]

[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");

[src]

Set the name of this category.

Examples

use rss::Category;

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

[src]

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"));

[src]

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]

[src]

Formats the value using the given formatter.

impl Default for Category
[src]

[src]

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

impl Clone for Category
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Category
[src]

[src]

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

[src]

This method tests for !=.