# ObservedPropertyKey

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/observable_for_property/struct-observedpropertykey/

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

```rust
struct ObservedPropertyKey
```

One property of one type, for the records kept per property rather than per object
(`ObservedPropertyKey`): the warning of `POCOObservableForProperty` is written once per key.



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/observed_property_key.rs#L11)

## Members

- [`type_id`](#struct_field-type_id)
- [`property_name`](#struct_field-property_name)
- [`new`](#function-new)
- [`of`](#function-of)

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

### type_id

```rust
type_id: Option<std::any::TypeId>
```

The type of the object that owns the property, when the owner gives its object (`Type`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/observed_property_key.rs#L13)

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

### property_name

```rust
property_name: String
```

The name of the property (`PropertyName`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/observed_property_key.rs#L15)

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

### new

```rust
fn new(type_id: Option<TypeId>, property_name: impl Into<String>) -> Self
```

The key of `property_name` on a type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/observed_property_key.rs#L20)

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

### of

```rust
fn of(owner: &PropertyOwner, property_name: impl Into<String>) -> Self
```

The key of `property_name` on the type of the object of `owner`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/observed_property_key.rs#L25)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Debug`
- `Clone`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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