pub struct Checkbox {
pub autofocus: Option<bool>,
pub material_tap_target_size: Option<StylesMaterialTapTargetSize>,
pub name: Option<String>,
pub on_pressed: Option<Listener>,
pub style: Option<StylesCheckboxStyle>,
pub tristate: Option<bool>,
pub type_: Value,
pub value: bool,
}Expand description
Element of type Checkbox
Fields§
§autofocus: Option<bool>Whether the checkbox is focused initially.
material_tap_target_size: Option<StylesMaterialTapTargetSize>§name: Option<String>The name that will be used in the form.
on_pressed: Option<Listener>§style: Option<StylesCheckboxStyle>§tristate: Option<bool>Whether the checkbox can have 3 states.
type_: ValueThe identifier of the component
value: boolThe default state of the checkbox
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Checkbox
impl<'de> Deserialize<'de> for Checkbox
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<Checkbox> for LenraComponent
impl From<Checkbox> for LenraComponent
Auto Trait Implementations§
impl Freeze for Checkbox
impl RefUnwindSafe for Checkbox
impl Send for Checkbox
impl Sync for Checkbox
impl Unpin for Checkbox
impl UnsafeUnpin for Checkbox
impl UnwindSafe for Checkbox
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