Aptos · Schema

MoveStructVariant

A single variant of a Move enum.

BlockchainWeb3MoveLayer 1CryptocurrencyNFTSmart ContractsDeFiTransactionsAccountsGraphQLgRPC

Properties

Name Type Description
name object
fields array Fields associated with the variant, if any.
View JSON Schema on GitHub

JSON Schema

MoveStructVariant.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/aptos/json-schema/MoveStructVariant.json",
  "title": "MoveStructVariant",
  "type": "object",
  "description": "A single variant of a Move enum.",
  "required": [
    "name",
    "fields"
  ],
  "properties": {
    "name": {
      "$ref": "#/components/schemas/IdentifierWrapper"
    },
    "fields": {
      "type": "array",
      "description": "Fields associated with the variant, if any.",
      "items": {
        "$ref": "#/components/schemas/MoveStructField"
      }
    }
  }
}