Attribute Macro monetary::denom

source ·
#[denom]
Expand description

This macro:

  • Ensures that the input item is a Zero-sized struct
  • Derives Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Copy, Default
  • Derives Serialize, Deserialize if the feature “serde” is enabled
  • Derives JsonSchema if the feature “schemars” is enabled
  • Adds the unsafe Denomination trait to the input item