pub struct Category { /* fields omitted */ }
Represents a category in an RSS feed.
Return the name of this category.
use rss::Category;
let mut category = Category::default();
category.set_name("Technology");
assert_eq!(category.name(), "Technology");
Set the name of this category.
use rss::Category;
let mut category = Category::default();
category.set_name("Technology");
Return the domain of this category.
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.
use rss::Category;
let mut category = Category::default();
category.set_domain("http://example.com".to_string());
Formats the value using the given formatter. Read more
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.