hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::permissions Namespace Reference

Functions

interface::permissions::Role fromTransport (iroha::protocol::RolePermission perm) noexcept
 
iroha::protocol::RolePermission toTransport (interface::permissions::Role r)
 
std::string toString (interface::permissions::Role r)
 
interface::permissions::Grantable fromTransport (iroha::protocol::GrantablePermission perm) noexcept
 
iroha::protocol::GrantablePermission toTransport (interface::permissions::Grantable r)
 
std::string toString (interface::permissions::Grantable r)
 
std::vector< std::string > toString (const interface::PermissionSet< interface::permissions::Role > &set)
 
std::vector< std::string > toString (const interface::PermissionSet< interface::permissions::Grantable > &set)
 

Function Documentation

◆ fromTransport() [1/2]

interface::permissions::Role shared_model::proto::permissions::fromTransport ( iroha::protocol::RolePermission  perm)
noexcept

Perform deserialization without checks

Parameters
permprotocol object for conversion
Returns
sm object
Here is the caller graph for this function:

◆ fromTransport() [2/2]

interface::permissions::Grantable shared_model::proto::permissions::fromTransport ( iroha::protocol::GrantablePermission  perm)
noexcept

Perform deserialization without checks

Parameters
permprotocol object for conversion
Returns
sm object

◆ toString() [1/4]

std::string shared_model::proto::permissions::toString ( interface::permissions::Role  r)
Parameters
smobject for conversion
Returns
its string representation
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString() [2/4]

std::string shared_model::proto::permissions::toString ( interface::permissions::Grantable  r)
Parameters
smobject for conversion
Returns
its string representation
Here is the call graph for this function:

◆ toString() [3/4]

std::vector< std::string > shared_model::proto::permissions::toString ( const interface::PermissionSet< interface::permissions::Role > &  set)
Parameters
setfor stringify
Returns
vector of string representation of set elements
Here is the call graph for this function:

◆ toString() [4/4]

std::vector< std::string > shared_model::proto::permissions::toString ( const interface::PermissionSet< interface::permissions::Grantable > &  set)
Parameters
setfor stringify
Returns
vector of string representation of set elements
Here is the call graph for this function:

◆ toTransport() [1/2]

iroha::protocol::RolePermission shared_model::proto::permissions::toTransport ( interface::permissions::Role  r)
Parameters
smobject for conversion
Returns
protobuf object
Here is the caller graph for this function:

◆ toTransport() [2/2]

iroha::protocol::GrantablePermission shared_model::proto::permissions::toTransport ( interface::permissions::Grantable  r)
Parameters
smobject for conversion
Returns
protobuf object