# PropertyViewModelRef

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/enum-propertyviewmodelref/

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

```rust
enum PropertyViewModelRef
```

The shared handle of a property view model of either class: a reference typed with the
abstract class `PropertyViewModel`.

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

## Members

- [`Ferro`](#variant-ferro)
- [`Clr`](#variant-clr)
- [`key`](#function-key)
- [`name`](#function-name)
- [`group`](#function-group)
- [`assigned_type`](#function-assigned_type)
- [`declaring_type`](#function-declaring_type)
- [`value`](#function-value)
- [`set_value`](#function-set_value)
- [`priority`](#function-priority)
- [`is_attached`](#function-is_attached)
- [`update`](#function-update)
- [`property_type`](#function-property_type)
- [`is_readonly`](#function-is_readonly)
- [`type_`](#function-type_)
- [`set_is_pinned`](#function-set_is_pinned)
- [`full_name`](#function-full_name)
- [`boxed`](#function-boxed)
- [`from_boxed`](#function-from_boxed)
- [`as_ferro`](#function-as_ferro)
- [`as_clr`](#function-as_clr)

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

### Ferro

```rust
Ferro(std::rc::Rc<super::FerroPropertyViewModel>)
```



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

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

### Clr

```rust
Clr(std::rc::Rc<super::ClrPropertyViewModel>)
```



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

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

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

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

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

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

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

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

### set_value

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



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

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

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

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

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

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

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

### type_

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

The text of the type of the property, followed by the type of its value in braces when
the two differ.

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

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

### set_is_pinned

```rust
fn set_is_pinned(self: &Self, value: bool)
```



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

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

### full_name

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

The name of the class without `PropertyViewModel`, a colon, the full name of the
declaring type, a dot and the name: the key a pinned property is remembered by.

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

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

### boxed

```rust
fn boxed(self: &Self) -> BoxedValue
```

The view model as a value of its class (the source of the bindings of an editor).

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

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

### from_boxed

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

The view model of an untyped value of one of the classes (`DataContext as
PropertyViewModel`).

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

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

### as_ferro

```rust
fn as_ferro(self: &Self) -> Option<&Rc<FerroPropertyViewModel>>
```

`as FerroPropertyViewModel`.

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

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

### as_clr

```rust
fn as_clr(self: &Self) -> Option<&Rc<ClrPropertyViewModel>>
```

`as ClrPropertyViewModel`.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`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/)
- `Clone`
- `Debug`
- `PartialEq`
- `Deref`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)

## Availability

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