# SetterValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/styling/enum-settervalue/

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

```rust
enum SetterValue
```

The value of a [`Setter`](/docs/0.5.0/api/ferroui-base/styling/struct-setter/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/setter.rs#L17)

## Members

- [`Value`](#variant-value)
- [`Binding`](#variant-binding)
- [`BindingBase`](#variant-bindingbase)
- [`Template`](#variant-template)

<a id="variant-value"></a>

### Value

```rust
Value(crate::BoxedValue)
```

A plain value, which must hold exactly the value type of the setter's
property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/setter.rs#L20)

<a id="variant-binding"></a>

### Binding

```rust
Binding(std::rc::Rc<dyn IObservable<crate::BoxedValue>>)
```

A source of values: the setter binds the property to it on every
control the style is applied to.

This is the seam for binding descriptions: a binding class will
create its per-control source where this variant uses the same
observable for every control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/setter.rs#L27)

<a id="variant-bindingbase"></a>

### BindingBase

```rust
BindingBase(std::rc::Rc<dyn BindingBase>)
```

A binding description: the setter instantiates the binding on every
control the style is applied to.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/setter.rs#L30)

<a id="variant-template"></a>

### Template

```rust
Template(std::rc::Rc<dyn ITemplate>)
```

A template: the setter sets the property to the object the template
builds, building it lazily once per control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/setter.rs#L33)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`

## Availability

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