# DirectPropertyMetadata

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

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

```rust
struct DirectPropertyMetadata<T>
```

Metadata for direct properties.

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

## Members

- [`new`](#function-new)
- [`with_default_binding_mode`](#function-with_default_binding_mode)
- [`with_enable_data_validation`](#function-with_enable_data_validation)
- [`unset_value`](#function-unset_value)

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

### new

```rust
fn new(unset_value: Option<T>) -> Self
```



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

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

### with_default_binding_mode

```rust
fn with_default_binding_mode(self: Self, mode: BindingMode) -> Self
```



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

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

### with_enable_data_validation

```rust
fn with_enable_data_validation(self: Self, enable: bool) -> Self
```



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

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

### unset_value

```rust
fn unset_value(self: &Self) -> &T
```

The value to use when the property is set to the unset value.

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

## 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>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`

## Availability

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