Skip to content
Snippets Groups Projects
Commit 95d7c23d authored by insert's avatar insert
Browse files

Badges: Add responsible disclosure badge.

Fix: Don't serialize None on Metadata. (january embed)
parent 6b8158bf
No related merge requests found
Pipeline #1188 passed with stage
in 5 minutes and 30 seconds
......@@ -63,7 +63,9 @@ pub enum Special {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Metadata {
#[serde(skip_serializing_if = "Option::is_none")]
url: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
special: Option<Special>,
#[serde(skip_serializing_if = "Option::is_none")]
......
......@@ -66,6 +66,7 @@ pub enum Badges {
Developer = 1,
Translator = 2,
Supporter = 4,
ResponsibleDisclosure = 8,
EarlyAdopter = 256,
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment