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 ()


Type Name
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)

    name a,
    name p

Construct a new permission level object with actor name and permission name


  • a - Name of the account who owns this authorization
  • p - Name of the permission

function permission_level (2/2)


Default Constructor

Friends Documentation

friend operator==

constexpr friend bool operator==(
    const permission_level & a,
    const permission_level & b

Check equality of two permissions


  • a - first permission to compare
  • b - second permission to compare


true if equal


false if unequal

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