Struct rss::Category
[−]
[src]
pub struct Category { /* fields omitted */ }
Represents a category in an RSS feed.
Methods
impl Category
[src]
fn name(&self) -> &str
[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");
fn set_name<V>(&mut self, name: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the name of this category.
Examples
use rss::Category; let mut category = Category::default(); category.set_name("Technology");
fn domain(&self) -> Option<&str>
[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"));
fn set_domain<V>(&mut self, domain: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
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]
impl Default for Category
[src]
impl Clone for Category
[src]
fn clone(&self) -> Category
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more