Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::CreateRole Struct Reference

#include "create_role.hpp"

Inheritance diagram for iroha::model::CreateRole:
Inheritance graph
Collaboration diagram for iroha::model::CreateRole:
Collaboration graph

Public Member Functions

bool operator== (const Command &command) const override
 CreateRole ()
 CreateRole (const std::string &role_name_, const std::set< std::string > &perms)
- Public Member Functions inherited from iroha::model::Command
virtual ~Command ()=default
virtual bool operator!= (const Command &rhs) const

Public Attributes

std::string role_name
std::set< std::string > permissions

Detailed Description

Create new role in the system

Constructor & Destructor Documentation

iroha::model::CreateRole::CreateRole ( )
iroha::model::CreateRole::CreateRole ( const std::string &  role_name_,
const std::set< std::string > &  perms 
role_name_- name of the role in the system
perms- set of permissions for the role

Member Function Documentation

bool iroha::model::CreateRole::operator== ( const Command command) const

Implements iroha::model::Command.

Member Data Documentation

std::set<std::string> iroha::model::CreateRole::permissions

Role permissions

std::string iroha::model::CreateRole::role_name

Role to insert to the system

The documentation for this struct was generated from the following files: