[]Keyword struct

The struct keyword.

The struct keyword is used to define a struct type.

Example:

struct Foo {
    field1: u32,
    field2: String,
}Run

There are different kinds of structs. For more information, take a look at the Rust Book.