Struct atom_syndication::Category
[−]
[src]
pub struct Category { /* fields omitted */ }
Represents a category in an Atom feed
Methods
impl Category
[src]
fn term(&self) -> &str
[src]
Return the term that identifies this category.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_term("technology"); assert_eq!(category.term(), "technology");
fn set_term<V>(&mut self, term: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the term that identifies this category.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_term("technology");
fn scheme(&self) -> Option<&str>
[src]
Return the categorization scheme URI.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_scheme("http://example.com/scheme".to_string()); assert_eq!(category.scheme(), Some("http://example.com/scheme"));
fn set_scheme<V>(&mut self, scheme: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the categorization scheme URI.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_scheme("http://example.com/scheme".to_string());
fn label(&self) -> Option<&str>
[src]
Return the label for this category.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_scheme("Technology".to_string()); assert_eq!(category.scheme(), Some("Technology"));
fn set_label<V>(&mut self, label: V) where
V: Into<Option<String>>,
[src]
V: Into<Option<String>>,
Set the label for this category.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_scheme("Technology".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