Menu

struct eosio::permission_level

Class List > eosio :: permission_level

Packed representation of a permission level (Authorization) More...

Public Attributes

Type Name
name actor
Name of the account who owns this permission.
name permission
Name of the permission.

Public Functions

Type Name
permission_level (name a, name p)
Construct a new permission level object.
permission_level ()
Construct a new permission level object.
permission_level (name a, name p)
permission_level ()

Friends

Type Name
friend DataStream & operator<<
friend DataStream & operator >>
friend constexpr 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.

Name of the account who owns this permission

variable permission

name eosio::permission_level::permission;

Name of the permission.

Name of the permission

Public Functions Documentation

function permission_level (1/4)

eosio::permission_level::permission_level(
    name a,
    name p
)

Construct a new permission level object.

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/4)

eosio::permission_level::permission_level()

Construct a new permission level object.

Default Constructor

function permission_level (3/4)

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

eosio::permission_level::permission_level()

Default Constructor

Friends Documentation

friend operator<< (1/2)

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const permission_level & t
)

friend operator >> (1/2)

template<typename DataStream>
DataStream& operator >>(
    DataStream & ds,
    permission_level & t
)

friend operator==

constexpr 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<< (2/2)

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const permission_level & t
)

friend operator >> (2/2)

template<typename DataStream>
DataStream& operator >>(
    DataStream & ds,
    permission_level & t
)

The documentation for this class was generated from the following file: libraries/eosiolib/action.hpp