# FerroPropertyMetadata

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/struct-ferropropertymetadata/

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

```rust
struct FerroPropertyMetadata
```

Metadata common to all property kinds.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L9)

## Members

- [`new`](#function-new)
- [`default_binding_mode`](#function-default_binding_mode)
- [`enable_data_validation`](#function-enable_data_validation)
- [`is_read_only`](#function-is_read_only)
- [`merge`](#function-merge)
- [`freeze`](#function-freeze)

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

### new

```rust
fn new(default_binding_mode: BindingMode, enable_data_validation: Option<bool>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L16)

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

### default_binding_mode

```rust
fn default_binding_mode(self: &Self) -> BindingMode
```

The default binding mode for the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L21)

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

### enable_data_validation

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

Whether the property is interested in data validation.

Data validation is validation performed at the target of a binding, for
example in a view model. To enable it on a binding, the property must
also enable it here.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L34)

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

### is_read_only

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

Whether the metadata has been frozen.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L39)

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

### merge

```rust
fn merge(self: &mut Self, base: &FerroPropertyMetadata)
```

Merges unset members from the base metadata.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L44)

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

### freeze

```rust
fn freeze(self: &mut Self)
```

Makes the metadata read-only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_metadata.rs#L55)

## Trait implementations

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

## Availability

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