# FerroPropertyViewModel

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

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

```rust
struct FerroPropertyViewModel
```

The view model of a registered property of an object: its value, the priority the value has
and the group the property is shown in.

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

## Members

- [`new`](#function-new)
- [`to_property_view_model`](#function-to_property_view_model)
- [`property`](#function-property)
- [`key`](#function-key)
- [`name`](#function-name)
- [`is_attached`](#function-is_attached)
- [`priority`](#function-priority)
- [`assigned_type`](#function-assigned_type)
- [`value`](#function-value)
- [`set_value`](#function-set_value)
- [`group`](#function-group)
- [`declaring_type`](#function-declaring_type)
- [`property_type`](#function-property_type)
- [`is_readonly`](#function-is_readonly)
- [`update`](#function-update)

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

### new

```rust
fn new(o: &FerroObject, property: &'static FerroProperty) -> Rc<Self>
```



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

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

### to_property_view_model

```rust
fn to_property_view_model(self: &Rc<Self>) -> PropertyViewModelRef
```

The handle of the view model typed with the abstract class.

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

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

### property

```rust
fn property(self: &Self) -> &'static FerroProperty
```



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

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

### key

```rust
fn key(self: &Self) -> PropertyViewModelKey
```



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

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

### name

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



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

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

### is_attached

```rust
fn is_attached(self: &Self) -> Option<bool>
```



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

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

### priority

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



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

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

### assigned_type

```rust
fn assigned_type(self: &Self) -> ValueType
```



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

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

### value

```rust
fn value(self: &Self) -> Option<BoxedValue>
```



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

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

### set_value

```rust
fn set_value(self: &Self, value: Option<BoxedValue>)
```

Sets the property of the object to `value` (a local value) and reads it back. A value the
property does not take is ignored (the managed original swallows the exception).

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

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

### group

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



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

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

### declaring_type

```rust
fn declaring_type(self: &Self) -> Option<ValueType>
```



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

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

### property_type

```rust
fn property_type(self: &Self) -> ValueType
```



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

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

### is_readonly

```rust
fn is_readonly(self: &Self) -> bool
```



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

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

### update

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



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

## 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/).
