pub struct Props {
pub name: String,
pub id: String,
pub label: String,
pub checked: bool,
pub disabled: bool,
pub aria_label: Option<String>,
}Fields§
§name: String§id: String§label: String§checked: bool§disabled: bool§aria_label: Option<String>Explicit accessible name. Required when label is empty (e.g., when
the switch sits next to an external label or description block).
Falls back to label if not set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Props
impl RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl UnsafeUnpin for Props
impl UnwindSafe for Props
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