Struct Members

Attribute

Struct members, also known as fields, are the individual variables that constitute a Solidity struct. Each member is defined with a specific data type and a unique name within the struct’s scope. For instance, in a DerivativeContract struct, underlyingAsset, strikePrice, and expirationDate would be distinct members. These attributes collectively define the properties and characteristics of the complex data type. They are fundamental for modeling intricate financial instruments on-chain.