Skip to content

Glossary: Rust Basics

Field

Also written: fields

A named value inside a struct, such as `price_cents` in `Product`. You read one with a dot, like `mug.name`.

Where the book teaches it

Related terms

StructInstance