Struct atom_syndication::Category [] [src]

pub struct Category { /* fields omitted */ }

Represents a category in an Atom feed

Methods

impl Category
[src]

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

[src]

Set the term that identifies this category.

Examples

use atom_syndication::Category;

let mut category = Category::default();
category.set_term("technology");

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

[src]

Set the categorization scheme URI.

Examples

use atom_syndication::Category;

let mut category = Category::default();
category.set_scheme("http://example.com/scheme".to_string());

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

[src]

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]

[src]

Formats the value using the given formatter. Read more

impl Default for Category
[src]

[src]

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

impl Clone for Category
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Category
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Category

impl Sync for Category