# IntoValidationErrors

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/reactive_property/trait-intovalidationerrors/

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

```rust
trait IntoValidationErrors
```

A result of a validator that converts to what the property aggregates: an optional message
(`Option<String>`, `Option<&str>`), an optional collection of messages (`Option<Vec<String>>`,
`Option<Vec<&str>>`), an optional collection of untyped errors (`Option<DataErrors>`) or
[`ValidationErrors`](/docs/0.5.0/api/ferroui-reactiveui/reactive_property/enum-validationerrors/) itself.

Deviation (DEVIATIONS.md, ReactiveUI): upstream overloads `AddValidationError` for the
validators that return a `string` and those that return an `IEnumerable`; the overloads here
take any result that implements this trait.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_property/reactive_property.rs#L64)

## Members

- [`into_validation_errors`](#function-into_validation_errors)

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

### into_validation_errors

```rust
fn into_validation_errors(self: Self) -> Option<ValidationErrors>
```

The result as the errors the property aggregates; `None` is no error.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_property/reactive_property.rs#L66)

## Trait implementations

- [`IntoValidationErrors`](/docs/0.5.0/api/ferroui-reactiveui/reactive_property/trait-intovalidationerrors/)

## Availability

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