Skip to main content

newtype

Attribute Macro newtype 

Source
#[newtype]
Expand description

Declare a distinct Rust and schema type around one primitive, including its bounds. Serde uses the wrapped value directly by default. A Principal newtype can use validate(non_anonymous) and be constructed via TryFrom<Principal>.