# model

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/model/

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

```rust
module model
```

The model layer: what bindings need from data that is not part of the
class hierarchy (view models, plain data, collections, commands).

The managed runtime discovers these capabilities through reflection and
interface casts on arbitrary objects. Here a model type states them once:
it implements the notification traits it supports and declares its
bindable properties and methods (see `ferro_model!`
and [`ModelTypeBuilder`](/docs/0.5.0/api/ferroui-base/data/model/struct-modeltypebuilder/)). Compiled bindings do not need the declaration:
they are built from typed accessor closures.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/model/mod.rs#L1)

## Contents

- [`Event`](/docs/0.5.0/api/ferroui-base/data/model/use-event/) — use
- [`ICommand`](/docs/0.5.0/api/ferroui-base/data/model/trait-icommand/) — trait
- [`BindableArray`](/docs/0.5.0/api/ferroui-base/data/model/struct-bindablearray/) — struct
- [`BindableDictionary`](/docs/0.5.0/api/ferroui-base/data/model/struct-bindabledictionary/) — struct
- [`IBindableArray`](/docs/0.5.0/api/ferroui-base/data/model/trait-ibindablearray/) — trait
- [`IBindableIndexer`](/docs/0.5.0/api/ferroui-base/data/model/trait-ibindableindexer/) — trait
- [`BindableList`](/docs/0.5.0/api/ferroui-base/data/model/struct-bindablelist/) — struct
- [`CollectionChange`](/docs/0.5.0/api/ferroui-base/data/model/use-collectionchange/) — use
- [`IBindableList`](/docs/0.5.0/api/ferroui-base/data/model/trait-ibindablelist/) — trait
- [`INotifyCollectionChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifycollectionchanged/) — use
- [`INotifyDataErrorInfo`](/docs/0.5.0/api/ferroui-base/data/model/trait-inotifydataerrorinfo/) — trait
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/) — use
- [`Model`](/docs/0.5.0/api/ferroui-base/data/model/trait-model/) — trait
- [`ModelMethod`](/docs/0.5.0/api/ferroui-base/data/model/struct-modelmethod/) — struct
- [`ModelType`](/docs/0.5.0/api/ferroui-base/data/model/struct-modeltype/) — struct
- [`ModelTypeBuilder`](/docs/0.5.0/api/ferroui-base/data/model/struct-modeltypebuilder/) — struct
- [`ModelTypes`](/docs/0.5.0/api/ferroui-base/data/model/struct-modeltypes/) — struct

## Availability

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