Struct

A struct is a data type similar to a tuple. Like tuples, they can be used to hold data of different types.

For example:

// With Store, you can store Data's structs in the storage part of contracts.
#[derive(Drop, starknet::Store)]
struct Data {
    address: starknet::ContractAddress,
    age: u8
}
Last change: 2024-06-09, commit: 3fbfb60