"defstruct" diffrenet behaviors in iex and elixir

I do not think so!

Defining a struct and using it in the following script is essential in scripting with elixir.