Elixir Alias __Module__
defmodule User.Authentication do
defstruct [:key, :token]
alias __MODULE__, as: Auth
.....
end
%Auth{key: "key", token: ".."}
patrick204nqh
defmodule User.Authentication do
defstruct [:key, :token]
alias __MODULE__, as: Auth
.....
end
%Auth{key: "key", token: ".."}