macro_rules! define_person_property {
($person_property:ident, Option<$value:ty>, $initialize:expr) => { ... };
($person_property:ident, $value:ty, $initialize:expr) => { ... };
($person_property:ident, Option<$value:ty>) => { ... };
($person_property:ident, $value:ty) => { ... };
}Expand description
Defines a person property with the following parameters:
$person_property: A name for the identifier type of the property$value: The type of the property’s value$initialize: (Optional) A function that takes aContextandPersonIdand returns the initial value. If it is not defined, callingget_person_propertyon the property without explicitly setting a value first will panic.