Skip to content

Commit

Permalink
Derive Debug, Clone for Channel, Item, Category, TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
busarovalex authored and frewsxcv committed Jun 10, 2015
1 parent 98a4201 commit d29a4f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/category.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use ::ViaXml;

/// [RSS 2.0 Specification § `<category>` sub-element of `<item>`]
/// (http://cyber.law.harvard.edu/rss/rss.html#ltcategorygtSubelementOfLtitemgt)
#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct Category {
pub domain: Option<String>,
pub value: String,
Expand Down
2 changes: 1 addition & 1 deletion src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use ::{Category, ElementUtils, Item, TextInput, ViaXml};
/// ..Default::default()
/// };
/// ```
#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct Channel {
pub title: String,
pub link: String,
Expand Down
2 changes: 1 addition & 1 deletion src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use ::{Category, ElementUtils, ViaXml};
/// ..Default::default()
/// };
/// ```
#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct Item {
pub title: Option<String>,
pub link: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions src/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use ::{ElementUtils, ViaXml};

/// [RSS 2.0 Specification § `<textInput>` sub-element of `<channel>`]
/// (http://cyber.law.harvard.edu/rss/rss.html#lttextinputgtSubelementOfLtchannelgt)
#[derive(Debug, Clone)]
pub struct TextInput {
pub title: String,
pub description: String,
Expand Down

0 comments on commit d29a4f2

Please sign in to comment.