FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IntoValidationErrors

    trait · ferroui-reactiveui · v0.5.0

    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 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

    Members

    into_validation_errors

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

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

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.