1 2 3 4 5 6 7 8 9 10 11 12 13
pub(crate) mod factory; use sofie::prelude::*; pub(crate) const NAME_TAKEN: &str = "is already a role"; #[derive(Aggregate)] pub struct Role { meta: Meta, name: String, } pub type RoleId = Id<Role>;