If we are going to support structs with fields, it would be good to have that struct-related code organised a little and less splashed over the main lib.rs file.