struct eosio::permission_level
Class List > eosio :: permission_level
Public Attributes
Type | Name |
---|---|
name | actor |
name | permission |
Public Functions
Type | Name |
---|---|
permission_level (name a, name p) | |
permission_level () |
Friends
Type | Name |
---|---|
constexpr friend bool | operator== |
constexpr friend bool | operator< |
friend DataStream & | operator<< |
friend DataStream & | operator>> |
Detailed Description
Packed representation of a permission level (Authorization)
Public Attributes Documentation
variable actor
name eosio::permission_level::actor;
Name of the account who owns this permission
variable permission
name eosio::permission_level::permission;
Name of the permission
Public Functions Documentation
function permission_level (1/2)
eosio::permission_level::permission_level(
name a,
name p
)
Construct a new permission level object with actor name and permission name
Parameters:
- a - Name of the account who owns this authorization
- p - Name of the permission
function permission_level (2/2)
eosio::permission_level::permission_level()
Default Constructor
Friends Documentation
friend operator==
constexpr friend bool operator==(
const permission_level & a,
const permission_level & b
)
Check equality of two permissions
Parameters:
- a - first permission to compare
- b - second permission to compare
Returns:
true if equal
Returns:
false if unequal
friend operator<
constexpr friend bool operator<(
const permission_level & a,
const permission_level & b
)
Lexicographically compares two permissions
Parameters:
- a - first permission to compare
- b - second permission to compare
Returns:
true if a < b
Returns:
false if a >= b
friend operator<<
template<typename DataStream>
DataStream& operator<<(
DataStream & ds,
const permission_level & t
)
friend operator>>
template<typename DataStream>
DataStream& operator>>(
DataStream & ds,
permission_level & t
)
The documentation for this class was generated from the following file: libraries/eosiolib/contracts/eosio/action.hpp