Skip to main content

ValidateResult

Type Alias ValidateResult 

Source
pub type ValidateResult = Result<(), Option<LocalizedString>>;
Expand description

Verdict from an InputDialog::validate callback.

Ok(()) accepts. Err(None) blocks silently; Err(Some(msg)) blocks and shows msg beneath the field once it has been edited.

Aliased Type§

pub enum ValidateResult {
    Ok(()),
    Err(Option<LocalizedString>),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Option<LocalizedString>)

Contains the error value