Introduction
Methods inside structs let you add actions that the struct can do. This helps keep data and behavior together, like a mini toolbox.
When you want to group related data and actions, like a shape that can calculate its area.
When you want to change or use the data inside a struct in a neat way.
When you want to keep your code organized by putting functions inside the struct they belong to.
When you want to create reusable pieces of code that represent real-world things with both data and actions.