---
description: Adds a filter to get contracts that have a struct with the given name.
---

# Contracts.with\_struct\_name()

`with_struct_name(name: str, sensitivity: bool = True) →` [`Contracts`]()

## Query Example

```python
from glider import *

def query():
  contracts = (
    Contracts()
    .with_struct_name("User")
    .exec(1))

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

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FiZCBI0mU2icbIwTU3BrP%2Fimage.png?alt=media&#x26;token=cdf9bbaa-dc4b-479d-9c4b-dee4a4437296" alt=""><figcaption></figcaption></figure>

