GameServer.Accounts.User (game_server_sdk v1.0.15)

Copy Markdown View Source

User struct from GameServer.

This is a stub module for SDK type definitions. The actual struct is provided by GameServer at runtime.

Fields

  • id - User ID (integer)
  • email - User email (string)
  • display_name - Display name (string, optional)
  • metadata - Arbitrary user metadata (map)
  • is_admin - Whether the user is an admin (boolean)
  • inserted_at - Creation timestamp
  • updated_at - Last update timestamp

Summary

Functions

Builds an email change changeset for a user.

Builds a password change changeset for a user.

Types

t()

@type t() :: %GameServer.Accounts.User{
  display_name: String.t() | nil,
  email: String.t(),
  id: integer(),
  inserted_at: DateTime.t(),
  is_admin: boolean(),
  metadata: map(),
  updated_at: DateTime.t()
}

Functions

email_changeset(user, attrs, opts)

@spec email_changeset(t(), map(), keyword()) :: no_return()

Builds an email change changeset for a user.

This function exists in the real GameServer implementation. In the SDK it is provided as a stub so documentation references can resolve.

password_changeset(user, attrs, opts)

@spec password_changeset(t(), map(), keyword()) :: no_return()

Builds a password change changeset for a user.

This function exists in the real GameServer implementation. In the SDK it is provided as a stub so documentation references can resolve.