Mountain/IPC/Permission/Role/ManageRole/CreateStandardRoles.rs
1
2//! Build the standard `user` / `developer` / `admin` role
3//! triple. Used by `Validator::Struct::InitializeDefaults` and
4//! by tests.
5
6use crate::{
7 IPC::Permission::Role::ManageRole::{CreateAdminRole, CreateDeveloperRole, CreateUserRole, Role},
8 dev_log,
9};
10
11pub fn Fn() -> Vec<Role::Struct> {
12 dev_log!("ipc", "[ManageRole] Creating standard roles");
13
14 vec![CreateUserRole::Fn(), CreateDeveloperRole::Fn(), CreateAdminRole::Fn()]
15}