Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§