CalendarDatePickerDateValidationErrorEventArgs
struct · ferroui-controls · v0.5.0
struct CalendarDatePickerDateValidationErrorEventArgs
Provides data for the DateValidationError event of the
CalendarDatePicker.
A copy shares the state of the args it was made from, so that what a handler decides reaches the control that raised the event.
Members
new
fn new(exception: Rc<dyn Error>, text: impl Into<String>) -> Self
Initializes a new instance of the
CalendarDatePickerDateValidationErrorEventArgs class.
exception is the initial exception from the DateValidationError
event and text the text that caused the event.
exception
fn exception(self: &Self) -> &Rc<dyn Error>
Gets the initial exception associated with the
DateValidationError event.
text
fn text(self: &Self) -> &str
Gets the text that caused the DateValidationError event.
throw_exception
fn throw_exception(self: &Self) -> bool
Gets a value indicating whether the exception should be thrown: the control then panics with the message of the exception.
If set to true, the control throws the exception when the text cannot be parsed to a date or the date cannot be selected. The default is false.
set_throw_exception
fn set_throw_exception(self: &Self, value: bool)
Sets a value indicating whether the exception should be thrown. (The args always have an exception, so the check of the reference for a missing one has no counterpart.)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherClonePartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.