> 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/contracts/contracts.with_struct_field_type.md).

# Contracts.with\_struct\_field\_type()

Adds a filter to get contracts that have a struct with the given field type.

`with_struct_field_type(field_type: str, sensitivity: bool = True) →` [`Contracts`](/glider-ide/api/contracts.md)

## Query Example

```python
from glider import *

def query():
  contracts = (
    Contracts()
    .with_name("DepositSecurityModule")
    .with_struct_field_type('bytes32')
    .exec(1))

  structs = contracts[0].structs().exec()
  for struct in structs:
    for struct_field in struct.fields:
      print(struct_field.type)
  
  return contracts
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FPQCLCvZtfWqbEKidVJ1n%2Fimage.png?alt=media&amp;token=053f9aad-7ccc-40f5-870d-00b281c83cf9" alt=""><figcaption></figcaption></figure>
