eosio::permission_level
Module: Contracts API / Action
#include <action.hpp>
Public Functions
Name | |
---|---|
permission_level(name a, name p) | |
permission_level() |
Public Attributes
Name | |
---|---|
name | actor |
name | permission |
Friends
Name | |
---|---|
constexpr friend bool | operator==(const permission_level & a, const permission_level & b) |
constexpr friend bool | operator<(const permission_level & a, const permission_level & b) |
Detailed Description
struct eosio::permission_level;
Packed representation of a permission level (Authorization)
Public Functions Documentation
function permission_level
inline permission_level(
name a,
name p
)
Parameters:
- a - Name of the account who owns this authorization
- p - Name of the permission
Construct a new permission level object with actor name and permission name
function permission_level
inline permission_level()
Default Constructor
Public Attributes Documentation
variable actor
name actor;
Name of the account who owns this permission
variable permission
name permission;
Name of the permission
Friends
friend operator==
friend constexpr friend bool operator==(
const permission_level & a,
const permission_level & b
);
Parameters:
- a - first permission to compare
- b - second permission to compare
Return:
- true if equal
- false if unequal
Check equality of two permissions
friend operator<
friend constexpr friend bool operator<(
const permission_level & a,
const permission_level & b
);
Parameters:
- a - first permission to compare
- b - second permission to compare
Return:
- true if a < b
- false if a >= b
Lexicographically compares two permissions
Updated on 2022-12-05 at 15:38:07 +0000