pub struct Ask {
pub text: String,
pub confirm: String,
pub cancel: String,
}Expand description
What to put to the user when a guard wants an answer.
Plain data, no toolkit: every backend can draw three strings, and none of them can draw each other’s dialog type. Built at the moment of asking rather than at install, so it is in whatever language is current then.
Fields§
§text: String§confirm: String§cancel: StringImplementations§
Trait Implementations§
impl Eq for Ask
impl StructuralPartialEq for Ask
Auto Trait Implementations§
impl Freeze for Ask
impl RefUnwindSafe for Ask
impl Send for Ask
impl Sync for Ask
impl Unpin for Ask
impl UnsafeUnpin for Ask
impl UnwindSafe for Ask
Blanket Implementations§
impl<M> AllowedSignal<M> for Mwhere
M: 'static,
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