pub struct FieldErrorProps<'__a> {
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
An error message for a field, announced when it appears.
Render it only when there is an error. Give it an id referenced by the
control’s aria-describedby, and set aria-invalid="true" on the control.
Child content can be a message or a list of messages.
Fields§
§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> FieldErrorProps<'__a>
impl<'__a> FieldErrorProps<'__a>
Sourcepub fn builder() -> FieldErrorPropsBuilder<'__a>
pub fn builder() -> FieldErrorPropsBuilder<'__a>
Returns a FieldErrorPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for FieldErrorProps<'__a>
impl<'__a> !Sync for FieldErrorProps<'__a>
impl<'__a> !UnwindSafe for FieldErrorProps<'__a>
impl<'__a> Freeze for FieldErrorProps<'__a>
impl<'__a> Send for FieldErrorProps<'__a>
impl<'__a> Unpin for FieldErrorProps<'__a>
impl<'__a> UnsafeUnpin for FieldErrorProps<'__a>
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