example/store

Types

pub type City {
  City(name: String)
}

Constructors

  • City(name: String)
pub type Country {
  Country(
    code: String,
    name: String,
    cities: List(City),
    language_codes: List(String),
  )
}

Constructors

  • Country(
      code: String,
      name: String,
      cities: List(City),
      language_codes: List(String),
    )
pub type Language {
  Language(code: String, name: String)
}

Constructors

  • Language(code: String, name: String)

Functions

pub fn cities() -> List(City)
pub fn countries() -> List(Country)
pub fn languages() -> List(Language)