pub struct field_error;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.
Trait Implementations§
Source§impl Component for field_error
impl Component for field_error
Source§type Props<'__props> = FieldErrorProps<'__props>
type Props<'__props> = FieldErrorProps<'__props>
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for field_error
impl RefUnwindSafe for field_error
impl Send for field_error
impl Sync for field_error
impl Unpin for field_error
impl UnsafeUnpin for field_error
impl UnwindSafe for field_error
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