I know we get module name from struct with .__struct__
. But if I have model name
User
And I want to get its struct name %User{}
. How can i get it?.
Withstruct(User)
. It gives all fields inside the user struct
%User{
key: :value
}
But I just want %User{}
. Not the data.
Thanks