pub struct DataAttr {
pub name: &'static str,
pub values: &'static [&'static str],
pub default: &'static str,
pub description: &'static str,
}Expand description
A declared data-* attribute on a component.
Fields§
§name: &'static strAttribute name including data- prefix (e.g. "data-layout").
values: &'static [&'static str]Allowed values (e.g. &["grid", "list", "minimal"]). Empty means free-form.
default: &'static strDefault value (first in values, or "" for free-form).
description: &'static strShort description shown in reference.md.
Auto Trait Implementations§
impl Freeze for DataAttr
impl RefUnwindSafe for DataAttr
impl Send for DataAttr
impl Sync for DataAttr
impl Unpin for DataAttr
impl UnsafeUnpin for DataAttr
impl UnwindSafe for DataAttr
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