#[derive(DataTypeFromDataTypes)] { // Attributes available to this derive: #[data_type] }
Implements a Rust’s std trait - From.
From
Based on data type allowed data types from its own enum, it implements the From trait from those units structs. And the trait for each variant with associated value.