# PropertyEditorMetadata

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-propertyeditormetadata/

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

```rust
struct PropertyEditorMetadata
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L69)

## Members

- [`kind`](#struct_field-kind)
- [`source`](#struct_field-source)
- [`nullable`](#struct_field-nullable)
- [`description`](#struct_field-description)
- [`object_source`](#struct_field-object_source)
- [`resources`](#struct_field-resources)
- [`resource_owners`](#struct_field-resource_owners)
- [`named_elements`](#struct_field-named_elements)
- [`binding_extension`](#struct_field-binding_extension)
- [`binding_relative_source`](#struct_field-binding_relative_source)
- [`validate_literal`](#struct_field-validate_literal)
- [`commit`](#struct_field-commit)
- [`new`](#function-new)
- [`validate`](#function-validate)
- [`apply`](#function-apply)

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

### kind

```rust
kind: PropertyEditorKind
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L70)

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

### source

```rust
source: PropertyValueSource
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L71)

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

### nullable

```rust
nullable: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L72)

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

### description

```rust
description: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L73)

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

### object_source

```rust
object_source: Option<String>
```

Standalone XAML with inherited namespace declarations retained.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L75)

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

### resources

```rust
resources: Vec<PropertyResourceChoice>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L76)

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

### resource_owners

```rust
resource_owners: Vec<(ferroui_designer_core::NodeId, String)>
```

Eligible resource owner scopes for extracting the accepted authored value.
An empty list suppresses the command (for example for mixed/inherited values).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L79)

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

### named_elements

```rust
named_elements: Vec<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L80)

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

### binding_extension

```rust
binding_extension: String
```

Qualified framework Binding extension in the target's namespace scope.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L82)

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

### binding_relative_source

```rust
binding_relative_source: Option<String>
```

Independently resolved QName; a Binding CLR alias need not expose RelativeSource.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L84)

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

### validate_literal

```rust
validate_literal: Option<PropertyLiteralValidator>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L85)

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

### commit

```rust
commit: Option<PropertyValueCommit>
```

The host checks document/selection identity and permissions again on every call.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L87)

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

### new

```rust
fn new(kind: PropertyEditorKind) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L91)

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

### validate

```rust
fn validate(self: &Self, value: &str) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L108)

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

### apply

```rust
fn apply(self: &Self, context: &PropertyEditorContext, edit: PropertyValueEdit) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_editor_metadata.rs#L183)

## Trait implementations

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

## Availability

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