I am trying to split my project into multiple files but I am having problems importing them into my main.rs as it says the Column\'s fields are private but I ha
main.rs
Try labeling the fields as public:
pub struct Column { pub name: String, pub vec: Vec, }
Labeling Column as pub means that other modules can use the struct itself, but not necessarily all of its members.
Column
pub