# StructureType

## class StructureType(value)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

A semantic OPC UA integer value with typed constants and equality.

Construct a semantic value from its native integer representation.

Parameters:
:   **value** ([*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)"))

    Native numeric value or flag bits.

Returns:
:   *object* – The corresponding typed wrapper.

Examples

```
>>> from instro.opcua.types import AttributeId
>>> AttributeId(13) == AttributeId.VALUE
True
```

Attributes

| [`STRUCTURE`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StructureType.md#instro.opcua.types.StructureType.STRUCTURE "instro.opcua.types.StructureType.STRUCTURE") |  |
| --- | --- |
| [`STRUCTURE_WITH_OPTIONAL_FIELDS`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StructureType.md#instro.opcua.types.StructureType.STRUCTURE_WITH_OPTIONAL_FIELDS "instro.opcua.types.StructureType.STRUCTURE_WITH_OPTIONAL_FIELDS") |  |
| [`STRUCTURE_WITH_SUBTYPED_VALUES`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StructureType.md#instro.opcua.types.StructureType.STRUCTURE_WITH_SUBTYPED_VALUES "instro.opcua.types.StructureType.STRUCTURE_WITH_SUBTYPED_VALUES") |  |
| [`UNION`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StructureType.md#instro.opcua.types.StructureType.UNION "instro.opcua.types.StructureType.UNION") |  |
| [`UNION_WITH_SUBTYPED_VALUES`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StructureType.md#instro.opcua.types.StructureType.UNION_WITH_SUBTYPED_VALUES "instro.opcua.types.StructureType.UNION_WITH_SUBTYPED_VALUES") |  |
| [`value`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StructureType.md#instro.opcua.types.StructureType.value "instro.opcua.types.StructureType.value") |  |

### STRUCTURE = StructureType(0)

### STRUCTURE_WITH_OPTIONAL_FIELDS = StructureType(1)

### STRUCTURE_WITH_SUBTYPED_VALUES = StructureType(3)

### UNION = StructureType(2)

### UNION_WITH_SUBTYPED_VALUES = StructureType(4)

### value
