UserMetadataValues

struct UserMetadataValues

Metadata values associated with a user.

  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?
  • The obfuscated ID of the user.

    Declaration

    Swift

    let obfuscatedUserId: String?
  • The email address of the user.

    Declaration

    Swift

    let email: String?
  • The URL of the user’s profile picture.

    Declaration

    Swift

    let profilePicUrl: String?
  • The display name of the user.

    Declaration

    Swift

    let name: String?
  • The email address of the service account. Only populated for federated identity users. Empty for standard user accounts.

    Declaration

    Swift

    let serviceAccountEmail: String?
  • The raw federated user ID for external identity providers. Only populated for federated identity users. Empty for standard user accounts.

    Declaration

    Swift

    let federatedUserId: String?
  • Creates a new Struct instance using data read from the given TraitDecoder.

    Throws

    HomeError.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws