> 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.source_code.md).

# Struct.source\_code()

Returns the source code of the struct.

## 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():
      print(struct.source_code())

  return contracts
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FpGNWiZ66kV3Yrr6yisej%2FScreenshot%202025-09-10%20at%205.37.45%E2%80%AFPM.png?alt=media&amp;token=84b6d5d5-61a8-430b-b2a5-623f49d3d77c" alt=""><figcaption></figcaption></figure>
