# DataErrorsChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/component_model/struct-dataerrorschangedeventargs/

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

```rust
struct DataErrorsChangedEventArgs
```

The argument of the `ErrorsChanged` event of an `INotifyDataErrorInfo`
(`System.ComponentModel.DataErrorsChangedEventArgs`): the name of the property whose
validation errors changed.

A name that is `None` or empty means that the errors of the whole object changed.

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

## Members

- [`new`](#function-new)
- [`from_static`](#function-from_static)
- [`property_name`](#function-property_name)

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

### new

```rust
fn new(property_name: Option<&str>) -> Self
```

The argument for the property named `property_name`
(`DataErrorsChangedEventArgs(string?)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/data_errors_changed_event_args.rs#L16)

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

### from_static

```rust
const fn from_static(property_name: &'static str) -> Self
```

The argument for a property whose name is known at compile time, without an allocation;
for the shared arguments that a type raises again and again.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/data_errors_changed_event_args.rs#L22)

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

### property_name

```rust
fn property_name(self: &Self) -> Option<&str>
```

The name of the property whose errors changed, or `None` for the whole object
(`PropertyName`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/data_errors_changed_event_args.rs#L28)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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