hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
grant_permission.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_GRANT_PERMISSION_HPP
7 #define IROHA_GRANT_PERMISSION_HPP
8 
9 #include <string>
10 #include "model/command.hpp"
11 
12 namespace iroha {
13  namespace model {
14 
18  struct GrantPermission : public Command {
24  std::string account_id;
25 
29  std::string permission_name;
30 
31  bool operator==(const Command &command) const override;
32 
34 
35  GrantPermission(const std::string &account_id_,
36  const std::string &permission_name_)
37  : account_id(account_id_), permission_name(permission_name_) {}
38  };
39  } // namespace model
40 } // namespace iroha
41 
42 #endif // IROHA_GRANT_PERMISSION_HPP
std::string permission_name
Definition: grant_permission.hpp:29
Definition: command.hpp:14
GrantPermission()
Definition: grant_permission.hpp:33
GrantPermission(const std::string &account_id_, const std::string &permission_name_)
Definition: grant_permission.hpp:35
Definition: block_query.hpp:14
bool operator==(const Command &command) const override
Definition: model_operators.cpp:71
Definition: grant_permission.hpp:18
std::string account_id
Definition: grant_permission.hpp:24