pub struct ButtonProps {
pub label: String,
pub icon: Option<String>,
pub raised: bool,
pub unelevated: bool,
pub outlined: bool,
pub dense: bool,
pub disabled: bool,
pub trailing_icon: bool,
pub onclick: Callback<()>,
}
Expand description
Props for Button
Fields§
§label: String
§icon: Option<String>
§raised: bool
§unelevated: bool
§outlined: bool
§dense: bool
§disabled: bool
§trailing_icon: bool
§onclick: Callback<()>
Trait Implementations§
Source§impl Clone for ButtonProps
impl Clone for ButtonProps
Source§fn clone(&self) -> ButtonProps
fn clone(&self) -> ButtonProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for ButtonProps
impl PartialEq for ButtonProps
Source§impl Properties for ButtonProps
impl Properties for ButtonProps
impl StructuralPartialEq for ButtonProps
Auto Trait Implementations§
impl Freeze for ButtonProps
impl !RefUnwindSafe for ButtonProps
impl !Send for ButtonProps
impl !Sync for ButtonProps
impl Unpin for ButtonProps
impl !UnwindSafe for ButtonProps
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