Trait monetary::Denomination

source ·
pub unsafe trait Denomination: Copy + Default + Eq + PartialEq + JsonSchema + Serialize + DeserializeOwned { }
Expand description

Marker trait for a Zero-Sized-Type representing a denomination. You’ll likely want to implement this trait simply by declaring an empty struct, and then using the #[denom] attribute macro on it. monetary_macros::denom

§Safety

This trait is marked as unsafe because it should likely only be implemented by using the #[denom] attribute macro. Implementing this trait manually, is therefore explicitly marked.

Object Safety§

This trait is not object safe.

Implementors§