pub struct Button {
pub id: String,
pub label: String,
pub primary: bool,
pub inline: bool,
pub validate: bool,
}Expand description
A button of a page. Pressing it calls the action again with its id as Request::button. It sits in
the dialog’s footer, or with inline under the markdown, for acting on something in it.
Fields§
§id: String§label: String§primary: bool§inline: bool§validate: boolWhether Hammer checks the page’s fields before calling.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Button
impl Freeze for Button
impl Move 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