pub struct SwitchProps {
pub size: Size,
pub checked: bool,
pub disabled: bool,
pub class: Option<String>,
pub aria_label: Option<String>,
pub id: Option<String>,
}Expand description
Properties for the styled Switch.
Fields§
§size: Size§checked: bool§disabled: bool§class: Option<String>§aria_label: Option<String>§id: Option<String>Trait Implementations§
Source§impl Clone for SwitchProps
impl Clone for SwitchProps
Source§fn clone(&self) -> SwitchProps
fn clone(&self) -> SwitchProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwitchProps
impl Debug for SwitchProps
Source§impl Default for SwitchProps
impl Default for SwitchProps
Source§fn default() -> SwitchProps
fn default() -> SwitchProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for SwitchProps
impl PartialEq for SwitchProps
Source§fn eq(&self, other: &SwitchProps) -> bool
fn eq(&self, other: &SwitchProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SwitchProps
Auto Trait Implementations§
impl Freeze for SwitchProps
impl RefUnwindSafe for SwitchProps
impl Send for SwitchProps
impl Sync for SwitchProps
impl Unpin for SwitchProps
impl UnsafeUnpin for SwitchProps
impl UnwindSafe for SwitchProps
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