pub trait INotifyDataErrorInfo {
// Required methods
fn has_errors(&self) -> bool;
fn get_errors(&self, property_name: Option<&str>) -> Vec<BoxedValue> ⓘ;
fn errors_changed(&self) -> &Event<str>;
}Expand description
Lets a model object report validation errors for its properties (synchronously or asynchronously).
Required Methods§
Sourcefn has_errors(&self) -> bool
fn has_errors(&self) -> bool
Whether the object has validation errors.
Sourcefn get_errors(&self, property_name: Option<&str>) -> Vec<BoxedValue> ⓘ
fn get_errors(&self, property_name: Option<&str>) -> Vec<BoxedValue> ⓘ
The validation errors of the property named property_name, or the
object-level errors when it is None or empty. Errors are untyped:
strings and boxed BindingError values
are shown as they are.
Sourcefn errors_changed(&self) -> &Event<str>
fn errors_changed(&self) -> &Event<str>
The event raised when the validation errors of a property (the event argument; empty for the whole object) have changed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".