Getting module name from struct

I have a struct which contain different fields in the schema and stored it in the variable:

  record = %Qber.V1.ProviderModel{}

Now i want to get the Qber.V1.ProviderModel which is the module name from the record variable.

I am not talking about the __Module__. I am talking about getting it from the record variable.

I didn’t find nay conventional way.

Is it possible? or any work arround

Thanks

record.__struct__.

5 Likes

Or %mod{} = %Qber.V1.ProviderModel{}

4 Likes

Why do you even need it?

Perhaps it better to define a proper protocol…

2 Likes