# BindingSetterViewModel

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-bindingsetterviewmodel/

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

```rust
struct BindingSetterViewModel
```

A setter whose value is a binding: the path of the binding, with a tint and a tooltip that
tell the kind of binding.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/binding_setter_view_model.rs#L16)

## Members

- [`new`](#function-new)
- [`tint`](#function-tint)
- [`value_type_tooltip`](#function-value_type_tooltip)
- [`path`](#function-path)
- [`copy_value`](#function-copy_value)

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

### new

```rust
fn new(property: &'static FerroProperty, value: Option<BoxedValue>, clipboard: Option<Rc<dyn IClipboard>>) -> Rc<Self>
```

## Panics
When `value` is not a binding of one of the three kinds (`ArgumentException`: "Invalid
binding type").

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/binding_setter_view_model.rs#L111)

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

### tint

```rust
fn tint(self: &Self) -> Rc<dyn IBrush>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/binding_setter_view_model.rs#L142)

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

### value_type_tooltip

```rust
fn value_type_tooltip(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/binding_setter_view_model.rs#L146)

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

### path

```rust
fn path(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/binding_setter_view_model.rs#L150)

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

### copy_value

```rust
fn copy_value(self: &Self)
```

The override of `CopyValue`: copies the path of the binding.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/binding_setter_view_model.rs#L155)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `PartialEq`
- `Deref`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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