> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contract/contract.structs.md).

# Contract.structs()

Returns the list of all structs of the contract.

`structs() →` [`Structs`](/glider-ide/api/structs.md)

## Example query

```python
from glider import *

def query():
  contracts = Contracts().exec(1, 20)

  for contract in contracts:
    structs = contract.structs().exec()
    for struct in structs:
      print(struct.name)

  return contracts
```

## Example output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fcm5zpKHFzD5GcKnYOE5i%2Fimage.png?alt=media&amp;token=c64630d3-16c3-44c4-a981-dfc941bd4d4c" alt=""><figcaption></figcaption></figure>
