I want to implement a trait for shared behaviour among a set of models.
In particular, I have to be sure that every model implementing my trait have to be a function that returns a polars dataframe with (at least) some fixed columns.
For sake of clarity, let us suppose we have a (0,1) float column and a trait for clustering. For values less than 0.5 we will label it as "low" else "hight". An algorithm that works only on the label needs to be sure to find that column and in the trait I want to be sure that column will be there.
Is it possible to specify the list of (mandatory) columns I expect for structs implementing this trait?