# SchemaElement

`import { SchemaElement } from "destack:schema";`

Schema element.

```ds title="SchemaElement"
export struct SchemaElement {
    label: string;
    schema: Schema<unknown>;
    isOptional: boolean;
    isReadonly: boolean;
    isRest: boolean;
    attributes: [Attribute];
    constraints: [Constraint<unknown>];
}
```

[language/library/src/schema/schema.ds:99:120](https://github.com/destack-sh/destack/blob/main/language/library/src/schema/schema.ds#L99-L120)

## Members

### `label: string`

Optional element label.

### `schema: Schema<unknown>`

Element schema.

### `isOptional: boolean`

Whether the element is optional.

### `isReadonly: boolean`

Whether the element is readonly.

### `isRest: boolean`

Whether the element captures the rest of the sequence.

### `attributes: [Attribute]`

Element attributes.

### `constraints: [Constraint<unknown>]`

Element constraints.
