pub struct Filling<'a> {
pub value: Value<'a>,
pub trailing: Option<Markup<'a>>,
pub id_prefix: Option<&'a str>,
}Expand description
Everything about the field that the description does not carry.
Fields§
§value: Value<'a>What the field holds now.
trailing: Option<Markup<'a>>Markup appended inside the group, after the hint. Not escaped.
id_prefix: Option<&'a str>Scopes the id attributes to one instance of the form.
The field’s name is what the value submits under and is the same
wherever the form appears; its id has to be unique in the document,
and those two facts stop agreeing the moment a form appears twice.
goingson hits this directly: its new-task and edit-task modals are the
same field set, so it prefixes form-modal-task-new or -edit to keep
label for and aria-describedby pointing at the right control.
Applies to id, for and the -hint / -error associations. Never to
name, which would change what the form submits.
Implementations§
Trait Implementations§
impl<'a> Copy for Filling<'a>
Auto Trait Implementations§
impl<'a> Freeze for Filling<'a>
impl<'a> RefUnwindSafe for Filling<'a>
impl<'a> Send for Filling<'a>
impl<'a> Sync for Filling<'a>
impl<'a> Unpin for Filling<'a>
impl<'a> UnsafeUnpin for Filling<'a>
impl<'a> UnwindSafe for Filling<'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