Disruptive Documentation

Structure Role

public struct Role: Decodable, Equatable  

Represents a role that a user can have within a project or an organization.

A Role is typically used when inviting a new member to a project or an organization, or when listing out the members of a project or an organization.

Functions relevant for Roles are implemented on the Disruptive struct:

%237 Role Role Equatable Equatable Role->Equatable Decodable Decodable Role->Decodable

Nested Types

Role.RoleType

The level of access that is given to a role.

Conforms To

Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Properties

role​Type

public let roleType: RoleType

The level of access that is given to the role.

display​Name

public let displayName: String

The display name of the Role. Example: Project user.

description

public let description: String

The description of the Role. Example: User in project.

permissions

public let permissions: [Permission] 

A list of permissions the role has. Indicates which actions can be taken on various resources