Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request softprops#252 from jessfraz/labels
labels: add description
  • Loading branch information
softprops committed May 29, 2020
2 parents 66d1aeb + e2aa3bf commit 067063d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/labels.rs
Expand Up @@ -74,9 +74,11 @@ impl LabelOptions {
}
}

#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Label {
pub url: String,
pub name: String,
pub color: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
}

0 comments on commit 067063d

Please sign in to comment.