Data::Object::RoleHas provides options for defining class attributes. WWW: https://metacpan.org/release/Data-Object-RoleHas