# Track

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

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

```rust
struct Track
```



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

## Members

- [`target`](#struct_field-target)
- [`property`](#struct_field-property)
- [`keyframes`](#struct_field-keyframes)
- [`base_value`](#struct_field-base_value)
- [`muted`](#struct_field-muted)
- [`new`](#function-new)
- [`record`](#function-record)
- [`remove_keyframe`](#function-remove_keyframe)
- [`move_keyframe`](#function-move_keyframe)
- [`set_easing`](#function-set_easing)
- [`validate`](#function-validate)

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

### target

```rust
target: u64
```



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

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

### property

```rust
property: String
```



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

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

### keyframes

```rust
keyframes: Vec<Keyframe>
```



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

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

### base_value

```rust
base_value: Option<crate::AnimationValue>
```

The value before animation. Required when importing a runtime track with implicit
endpoint values when FillMode does not hold that endpoint. Authored tracks
without it hold their closest explicit keyframe.

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

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

### muted

```rust
muted: bool
```



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

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

### new

```rust
fn new(target: u64, property: impl Into<String>) -> Self
```



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

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

### record

```rust
fn record(self: &mut Self, time: f64, value: AnimationValue) -> Result<()>
```



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

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

### remove_keyframe

```rust
fn remove_keyframe(self: &mut Self, time: f64) -> Result<Keyframe>
```



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

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

### move_keyframe

```rust
fn move_keyframe(self: &mut Self, from: f64, to: f64) -> Result<()>
```



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

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

### set_easing

```rust
fn set_easing(self: &mut Self, time: f64, easing: Easing) -> Result<()>
```



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

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

### validate

```rust
fn validate(self: &Self, duration: f64) -> Result<()>
```



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

## 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`
- `Serialize`
- `Deserialize<'de>`

## Availability

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