Struct Trait
_10pub struct Trait {_10_10 pub let name: String_10_10 pub let value: AnyStruct_10_10 pub let displayType: String?_10_10 pub let rarity: Rarity?_10}
View to represent a single field of metadata on an NFT. This is used to get traits of individual key/value pairs along with some contextualized data about the trait
Initializer​
_10init(name: String, value: AnyStruct, displayType: String?, rarity: Rarity?)