title: Elixir: def structs with fields as lists of another struct type
body: <p>If I have the following struct:</p>
  
  <pre><code>defmodule Events.InviteEvent do
    defstruct [
      :event_id,
      :invite_list
    ]
  end
  </code></pre>
  
  <p>Is it possible to define the :invite_list to be a list of which has a type of another struct ? Basically I would like to define a struct with the following structure:</p>
  
  <pre><code>{
  event_id: 123,
  invite_list: [
                {name: "jason", email: "myemail1@email.com"},
                {name: "judy", email: "myemail2@email.com"}
                ]
  }
  </code></pre>