Struct atom_syndication::Category [−][src]
Expand description
Represents a category in an Atom feed
Fields
term: StringIdentifies the category.
scheme: Option<String>Identifies the categorization scheme via a URI.
label: Option<String>A human-readable label for display.
Implementations
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");
Set the term that identifies this category.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_term("technology");
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"));
Set the categorization scheme URI.
Examples
use atom_syndication::Category; let mut category = Category::default(); category.set_scheme("http://example.com/scheme".to_string());
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"));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Categoryimpl UnwindSafe for CategoryBlanket Implementations
Mutably borrows from an owned value. Read more