pub struct ConfirmDialogTexts<'a> {
pub title: &'a str,
pub body: &'a str,
pub deny_label: &'a str,
pub allow_label: &'a str,
}Expand description
Borrowed caller-owned copy for a confirmation dialog.
Empty strings are valid; labels are drawn without wrapping or truncation.
§Examples
use ailloli_ui_widgets::overlay::modal::ConfirmDialogTexts;
let texts = ConfirmDialogTexts { title: "Delete?", body: "This cannot be undone", deny_label: "Cancel", allow_label: "Delete" };
assert_eq!(texts.allow_label, "Delete");Fields§
§title: &'a strUI-font title.
body: &'a strMono-font body line.
deny_label: &'a strDeny-button label.
allow_label: &'a strAllow-button label.
Trait Implementations§
Source§impl<'a> Clone for ConfirmDialogTexts<'a>
impl<'a> Clone for ConfirmDialogTexts<'a>
Source§fn clone(&self) -> ConfirmDialogTexts<'a>
fn clone(&self) -> ConfirmDialogTexts<'a>
Returns a copy 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<'a> Debug for ConfirmDialogTexts<'a>
impl<'a> Debug for ConfirmDialogTexts<'a>
impl<'a> Copy for ConfirmDialogTexts<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConfirmDialogTexts<'a>
impl<'a> RefUnwindSafe for ConfirmDialogTexts<'a>
impl<'a> Send for ConfirmDialogTexts<'a>
impl<'a> Sync for ConfirmDialogTexts<'a>
impl<'a> Unpin for ConfirmDialogTexts<'a>
impl<'a> UnwindSafe for ConfirmDialogTexts<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.