Disruptive Documentation

Structure Member

public struct Member: Decodable, Equatable  

A Member assigns a specific role to an account within a project or an organization. The account can be either a user or a service account.

Functions relevant for Members are implemented on the Disruptive struct:

%33 Member Member Equatable Equatable Member->Equatable Decodable Decodable Member->Decodable

Nested Types

Member.Status

Indicates the current status of the membership.

Member.AccountType

The type of account the membership represents.

Conforms To

Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Properties

identifier

public let identifier: String

The identifier of the Member.

project​ID

public let projectID: String? 

If the member is associated with a project, this will be populated with the identifier of the project.

organization​ID

public let organizationID: String? 

If the member is associated with an organization, this will be populated with the identifier of the organization.

display​Name

public let displayName: String

The display name of the Member.

roles

public let roles: [Role.RoleType] 

The roles assigned to the Member within the project or organization it is associated with.

status

public let status: Status

The status of the Member. Useful to check if a user has accepted the invitation.

email

public let email: String

The email of the Member. Can be both a user email or a service account email.

account​Type

public let accountType: AccountType

The type of account the Member is for.

create​Time

public let createTime: Date

The timestamp of when the Member was created.