Packages

Elixir SDK for the Appwrite backend-as-a-service platform. Covers Auth, Databases, TablesDB, Storage, Functions, Sites, Tokens, Teams, Messaging, GraphQL, and more.

Current section

Files

Jump to
appwrite lib appwrite types country.ex
Raw

lib/appwrite/types/country.ex

defmodule Appwrite.Types.Country do
@moduledoc """
A country record returned by `GET /v1/locale/countries`.
## Fields
- `name` (`String.t()`) — human-readable country name (e.g. `"India"`).
- `code` (`String.t()`) — ISO 3166-1 alpha-2 code (e.g. `"IN"`).
"""
@derive Jason.Encoder
@type t :: %__MODULE__{
name: String.t(),
code: String.t()
}
defstruct [:name, :code]
end