pub struct Toggle {
pub autofocus: Option<bool>,
pub disabled: Option<bool>,
pub drag_start_behavior: Option<ToggleDragStartBehavior>,
pub name: Option<String>,
pub on_pressed: Option<Listener>,
pub splash_radius: Option<f64>,
pub style: Option<StylesToggleStyle>,
pub type_: Value,
pub value: bool,
}Expand description
Element of type Toggle
Fields§
§autofocus: Option<bool>The default focus in boolean.
disabled: Option<bool>The toggle is disabled if true
drag_start_behavior: Option<ToggleDragStartBehavior>Determines the way that drag start behavior is handled.
name: Option<String>The name that will be used in the form.
on_pressed: Option<Listener>§splash_radius: Option<f64>§style: Option<StylesToggleStyle>§type_: ValueThe identifier of the component
value: boolThe value of the element.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Toggle
impl<'de> Deserialize<'de> for Toggle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Toggle> for LenraComponent
impl From<Toggle> for LenraComponent
Auto Trait Implementations§
impl Freeze for Toggle
impl RefUnwindSafe for Toggle
impl Send for Toggle
impl Sync for Toggle
impl Unpin for Toggle
impl UnsafeUnpin for Toggle
impl UnwindSafe for Toggle
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