struct InvitationDetailsDetails of an invitation to join a structure.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
The ID of the invitation.
Declaration
Swift
let invitationId: String? -
The user ID of the user who created the invitation.
Declaration
Swift
let inviterUserId: String? -
The timestamp when the invitation was created.
Declaration
Swift
let creationTimestamp: Date? -
The role the invited user will have in the structure.
Declaration
Swift
let intendedUserRole: Google.StructureUserManagementTrait.UserRole? -
The timestamp when the invitation expires.
Declaration
Swift
let expirationTimestamp: Date? -
The current status of the invitation.
Declaration
Swift
let status: Google.StructureUserManagementTrait.InvitationStatus? -
The user ID of the user who accepted the invitation, if accepted.
Declaration
Swift
let acceptorUserId: String? -
The user ID of the user who revoked the invitation, if revoked.
Declaration
Swift
let revokerUserId: String? -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws