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:
Relationships
Nested Types
Member.StatusIndicates the current status of the membership.
Member.AccountTypeThe type of account the membership represents.
Conforms To
DecodableEquatable
Initializers
init(from:)
public init(from decoder: Decoder) throws
Properties
projectID
public let projectID: String?
If the member is associated with a project, this will be populated with the identifier of the project.
organizationID
public let organizationID: String?
If the member is associated with an organization, this will be populated with the identifier of the organization.
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.