# ITypedDataTemplate

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/templates/trait-itypeddatatemplate/

**trait** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
trait ITypedDataTemplate: IDataTemplate
```

A data template that declares the type of the data it applies to.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/templates/i_typed_data_template.rs#L5)

## Members

- [`data_type`](#function-data_type)

<a id="function-data_type"></a>

### data_type

```rust
fn data_type(self: &Self) -> Option<TypeId>
```

The type of the data the template applies to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/templates/i_typed_data_template.rs#L7)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
