pub struct Button {
pub disabled: Option<bool>,
pub left_icon: Option<Icon>,
pub main_style: Option<StylesStyle>,
pub on_pressed: Option<Listener>,
pub right_icon: Option<Icon>,
pub size: Option<StylesSize>,
pub submit: Option<bool>,
pub text: String,
pub type_: Value,
}Expand description
Element of type Button
Fields§
§disabled: Option<bool>The button is disabled if true
left_icon: Option<Icon>§main_style: Option<StylesStyle>§on_pressed: Option<Listener>§right_icon: Option<Icon>§size: Option<StylesSize>§submit: Option<bool>Whether the button is a submit button for a form.
text: StringThe value of the text inside the button
type_: ValueThe identifier of the component
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Button
impl<'de> Deserialize<'de> for Button
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<Button> for LenraComponent
impl From<Button> for LenraComponent
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnsafeUnpin for Button
impl UnwindSafe for Button
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