Skip to content

Commit

Permalink
fix: make mj-class attributes implement serde
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <[email protected]>
  • Loading branch information
jdrouet committed Jul 27, 2024
1 parent 8510a33 commit f665b6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mrml-core/src/mj_attributes_class/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ impl StaticTag for MjAttributesClassTag {
}
}

#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
#[derive(Clone, Debug)]
#[cfg_attr(feature = "json", derive(serde::Serialize, serde::Deserialize))]
pub struct MjAttributesClassAttributes {
pub name: String,
#[serde(flatten)]
#[cfg_attr(feature = "json", serde(flatten))]
pub others: Map<String, String>,
}

Expand Down

0 comments on commit f665b6b

Please sign in to comment.