Struct atom_syndication::Category [] [src]

pub struct Category { /* fields omitted */ }

Represents a category in an Atom feed

Methods

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

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

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]

Formats the value using the given formatter.

impl Default for Category
[src]

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

impl Clone for Category
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Category
[src]

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

This method tests for !=.