Structures in Rust are defined using the struct keyword. The most common form of structure consists of a set of named fields:
struct Foo {
my_bool: bool,
my_num: isize,
my_string: String,
}
The above declares a struct with three fields: my_bool, my_num, and my_string, of the type...