How do i produce an elixir struct from erlang

I know I am not defining all fields. if I do this from Elixir, it works fine, as I wrote here.

I’m now trying to reproduce that, from the parser, in erlang.

the error message explicitly mentions from_sources, which I would like to understand.