Struct

A struct is a data type similar to 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: 2023-12-07, commit: 286b664