In my struct I have a from function that takes a shared reference to a vector of elements of type T and does some initialisation.
from
T
fn