How to properly import structs in Rust?
I wanted to create a struct named "Filme" and include it in the main.rs, but I’ve been struggling with that. Here is the Filme.rs file: pub struct Filme{ pub nome: String, pub duracao: u8, pub categorias : String, } impl Filme{ pub fn new(nome:String, duracao:u8, categorias: String) -> Filme{ Filme { nome: nome, duracao: duracao,… Read More How to properly import structs in Rust?