hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
detach_role.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_DETACH_ROLE_HPP
7 #define IROHA_DETACH_ROLE_HPP
8 
9 #include "model/command.hpp"
10 
11 namespace iroha {
12  namespace model {
13 
17  struct DetachRole : public Command {
21  std::string account_id;
25  std::string role_name;
26 
27  bool operator==(const Command &command) const override;
28 
34  DetachRole(const std::string &account_id, const std::string &role_name_)
35  : account_id(account_id), role_name(role_name_) {}
36  };
37  } // namespace model
38 } // namespace iroha
39 
40 #endif // IROHA_DETACH_ROLE_HPP
Definition: command.hpp:14
bool operator==(const Command &command) const override
Definition: model_operators.cpp:57
std::string account_id
Definition: detach_role.hpp:21
Definition: block_query.hpp:16
DetachRole()
Definition: detach_role.hpp:29
Definition: detach_role.hpp:17
std::string role_name
Definition: detach_role.hpp:25
DetachRole(const std::string &account_id, const std::string &role_name_)
Definition: detach_role.hpp:34