I'm writing a program in Rust that involves sending data through a TCP Connection. I cannot figure out the way to convert a struct into a byte array and back. Other solutions have only managed to convert it into u8, but as I'm new-ish to Rust (only 3 months) I cannot figure it out. I hope you guys could give a way to do it.