reactive_graph_std_date_time_model/entity/month.rs
1use crate::NAMESPACE_DATE_TIME;
2use reactive_graph_graph::entity_ty;
3use reactive_graph_graph::properties;
4use reactive_graph_reactive_model_api::entity_model;
5
6properties!(MonthProperties, (MONTH_OF_YEAR, "month_of_year", 0), (MONTH_AND_YEAR, "month_and_year", ""));
7
8entity_ty!(ENTITY_TYPE_MONTH, NAMESPACE_DATE_TIME, ENTITY_TYPE_NAME_MONTH, "month");
9
10entity_model!(
11 Month,
12 get month_of_year u64,
13 get month_and_year string
14);