Get struct name from model name

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

struct(User) is equivalent to %User{}:

iex(1)> defmodule S do
...(1)>   defstruct :a, :b
...(1)> end
iex(2) struct(S) === %S{}
true
iex(3)> struct(S)
%S{a: nil, b: nil}
iex(4)> %S{}
%S{a: nil, b: nil}
4 Likes

Thanks