# BehaviorModel

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-animation/struct-behaviormodel/

**struct** · [`ferroui-designer-animation`](/docs/0.5.0/api/ferroui-designer-animation/) · v0.5.0

```rust
struct BehaviorModel
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L58)

## Members

- [`id`](#struct_field-id)
- [`owner`](#struct_field-owner)
- [`trigger`](#struct_field-trigger)
- [`actions`](#struct_field-actions)
- [`to_xaml`](#function-to_xaml)
- [`read`](#function-read)
- [`from_source`](#function-from_source)
- [`plan`](#function-plan)
- [`remove`](#function-remove)

<a id="struct_field-id"></a>

### id

```rust
id: Option<ferroui_designer_core::NodeId>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L59)

<a id="struct_field-owner"></a>

### owner

```rust
owner: ferroui_designer_core::NodeId
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L60)

<a id="struct_field-trigger"></a>

### trigger

```rust
trigger: BehaviorTrigger
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L61)

<a id="struct_field-actions"></a>

### actions

```rust
actions: Vec<BehaviorAction>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L62)

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

### to_xaml

```rust
fn to_xaml(self: &Self) -> Result<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L134)

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

### read

```rust
fn read(document: &Document, owner: NodeId) -> Result<Vec<Self>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L197)

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

### from_source

```rust
fn from_source(source: &str, owner: NodeId, id: Option<NodeId>) -> Result<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L228)

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

### plan

```rust
fn plan(self: &Self, document: &Document) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L310)

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

### remove

```rust
fn remove(document: &Document, id: NodeId) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L384)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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