# struct example %__MODULE__{ name: "apple", location: {40,0,1}, }
iex> defmodule User do ...> defstruct name: "John", age: 27 ...> end iex> %User{} %User{age: 27, name: "John"} iex> %User{name: "Jane"} %User{age: 27, name: "Jane"}