pub struct ConfirmGate {
pub can_confirm: bool,
pub message: Option<String>,
}Expand description
Per-frame gate for whether the dialog is allowed to confirm.
This is primarily used by IGFD-style custom panes to disable confirmation and provide user feedback when extra validation fails.
Fields§
§can_confirm: boolWhether confirmation is allowed.
message: Option<String>Optional user-facing message shown when confirmation is blocked.
Trait Implementations§
Source§impl Clone for ConfirmGate
impl Clone for ConfirmGate
Source§fn clone(&self) -> ConfirmGate
fn clone(&self) -> ConfirmGate
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 Debug for ConfirmGate
impl Debug for ConfirmGate
Auto Trait Implementations§
impl Freeze for ConfirmGate
impl RefUnwindSafe for ConfirmGate
impl Send for ConfirmGate
impl Sync for ConfirmGate
impl Unpin for ConfirmGate
impl UnsafeUnpin for ConfirmGate
impl UnwindSafe for ConfirmGate
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