# DataValidationBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/core/plugins/struct-datavalidationbase/

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

```rust
struct DataValidationBase
```

The state shared by data validators: property accessors returned from an
`IDataValidationPlugin` that wrap an inner
accessor and convert the values received from it into
[`BindingNotification`](/docs/0.5.0/api/ferroui-base/data/struct-bindingnotification/)s.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/data_validation_base.rs#L10)

## Members

- [`base`](#struct_field-base)
- [`inner`](#struct_field-inner)
- [`new`](#function-new)
- [`subscribe_core`](#function-subscribe_core)
- [`unsubscribe_core`](#function-unsubscribe_core)
- [`inner_value_changed`](#function-inner_value_changed)

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

### base

```rust
base: super::PropertyAccessorBase
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/data_validation_base.rs#L11)

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

### inner

```rust
inner: std::rc::Rc<dyn IPropertyAccessor>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/data_validation_base.rs#L12)

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

### new

```rust
fn new(inner: Rc<dyn IPropertyAccessor>) -> Self
```



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

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

### subscribe_core

```rust
fn subscribe_core(self: &Self, inner_value_changed: AccessorListener)
```

Begins listening to the inner accessor.

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

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

### unsubscribe_core

```rust
fn unsubscribe_core(self: &Self)
```

Stops listening to the inner accessor.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/data_validation_base.rs#L26)

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

### inner_value_changed

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

The default handling of a value from the inner accessor: wraps it in a
notification unless it already is one, and publishes it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/data_validation_base.rs#L32)

## Trait implementations

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

## Availability

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