FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RequiredDateValidationRule

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct RequiredDateValidationRule
    

    Validation rule that requires a date value.

    The rule validates the selected date of a date picker (a date and time with an offset, null when no date is selected).

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<RequiredDateValidationRule>
    

    Returns a strong reference to this object.

    Source

    error_message_property

    fn error_message_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the ErrorMessage property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a rule.

    Source

    error_message

    fn error_message(self: &Self) -> Option<String>
    

    Gets or sets the error message for failed validation. This is a property of the object model.

    Source

    set_error_message

    fn set_error_message(self: &Self, value: Option<String>)
    

    Source

    validate

    fn validate(self: &Self, value: Option<&BoxedValue>) -> bool
    

    Validates the specified value: valid when it is a date (not null).

    Source

    Trait implementations

    Availability

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