# StructConstraint

# StructConstraint


```
class StructConstraint : Constraint
```

<br />

*** ** * ** ***

Represents constraints on individual fields of a struct.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/StructConstraint#StructConstraint(kotlin.collections.Map)(fieldConstraints: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Field, https://developers.home.google.com/reference/kotlin/com/google/home/automation/Constraint>)` Create a `StructConstraint` instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/Field, https://developers.home.google.com/reference/kotlin/com/google/home/automation/Constraint>` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/StructConstraint#fieldConstraints()` The constraints on each field. |

## Public constructors

### StructConstraint

```
StructConstraint(fieldConstraints: Map<Field, Constraint>)
```

Create a `StructConstraint` instance.

## Public properties

### fieldConstraints

```
val fieldConstraints: Map<Field, Constraint>
```

The constraints on each field.