pub struct ActionButton<'a> {
pub text: String,
pub bold: bool,
pub on_click: Option<Box<dyn FnOnce() + 'a>>,
pub enabled: bool,
}Expand description
An individual action button in the sheet
Fields§
§text: StringButton text
bold: boolWhether text should be bold
on_click: Option<Box<dyn FnOnce() + 'a>>Optional callback
enabled: boolWhether button is enabled
Auto Trait Implementations§
impl<'a> Freeze for ActionButton<'a>
impl<'a> !RefUnwindSafe for ActionButton<'a>
impl<'a> !Send for ActionButton<'a>
impl<'a> !Sync for ActionButton<'a>
impl<'a> Unpin for ActionButton<'a>
impl<'a> UnsafeUnpin for ActionButton<'a>
impl<'a> !UnwindSafe for ActionButton<'a>
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