> 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/struct/struct.fields.md).

# Struct.fields

Returns the fields of the struct.

*`property`*` ``fields :` [*`APIList`*](/glider-ide/api/iterables/apilist.md)*`[`*[*`StructField`*](/glider-ide/api/structfield.md)*`]`*

## Query Example

```python
from glider import *


def query():
  contracts = Contracts().with_name("DefaultReserveInterestRateStrategy").exec(1)

  for contract in contracts:
    for struct in contract.structs().exec():
      for struct_field in struct.fields:
        print(struct_field.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%2F7AMP8yKhIXsiIgEN8GV9%2FScreenshot%202025-09-10%20at%205.33.42%E2%80%AFPM.png?alt=media&amp;token=e09379b8-5faf-4692-8dd8-eeb8eb87202f" alt=""><figcaption></figcaption></figure>
