pub struct ErrorDescriptor {
pub widget: WidgetId,
pub error_text: Option<String>,
pub suggestion: Option<String>,
}Expand description
Raw input for error field factory methods.
Fields§
§widget: WidgetIdForm widget that has an associated error.
error_text: Option<String>Human-readable error description (WCAG 3.3.1).
suggestion: Option<String>Suggested correction (WCAG 3.3.3).
Trait Implementations§
Source§impl Clone for ErrorDescriptor
impl Clone for ErrorDescriptor
Source§fn clone(&self) -> ErrorDescriptor
fn clone(&self) -> ErrorDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorDescriptor
impl Debug for ErrorDescriptor
Source§impl PartialEq for ErrorDescriptor
impl PartialEq for ErrorDescriptor
Source§fn eq(&self, other: &ErrorDescriptor) -> bool
fn eq(&self, other: &ErrorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ErrorDescriptor
Auto Trait Implementations§
impl Freeze for ErrorDescriptor
impl RefUnwindSafe for ErrorDescriptor
impl Send for ErrorDescriptor
impl Sync for ErrorDescriptor
impl Unpin for ErrorDescriptor
impl UnsafeUnpin for ErrorDescriptor
impl UnwindSafe for ErrorDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more