pub struct ModalButton {
pub label: String,
pub color: Option<Color>,
pub primary: bool,
}Expand description
A button in the modal footer.
Fields§
§label: StringButton label.
color: Option<Color>Button color.
primary: boolWhether this button is highlighted/primary.
Implementations§
Source§impl ModalButton
impl ModalButton
Trait Implementations§
Source§impl Clone for ModalButton
impl Clone for ModalButton
Source§fn clone(&self) -> ModalButton
fn clone(&self) -> ModalButton
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 moreAuto Trait Implementations§
impl Freeze for ModalButton
impl RefUnwindSafe for ModalButton
impl Send for ModalButton
impl Sync for ModalButton
impl Unpin for ModalButton
impl UnwindSafe for ModalButton
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