#[derive(DataTypeFromUnits)] { // Attributes available to this derive: #[data_type] }
Implements a Rust’s std trait - From.
From
Based on data type allowed units from its own enum, it implements the From trait from those units structs. And the custom trait <unit>Storage from each variant.
<unit>Storage