pub struct Ask {
pub opts: Vec<Opt>,
pub buttons: bool,
}Expand description
A message’s ask: its options, and whether Element shows them as buttons (the seeds go either way).
Fields§
§opts: Vec<Opt>The options, in order.
Whether the message shows them as buttons.
Implementations§
Source§impl Ask
impl Ask
Sourcepub fn rich(&self) -> Rich
pub fn rich(&self) -> Rich
The buttons block (each label, shortened to MAX_LABEL, or its
key without one): what is registered for presses, and shown with
Self::buttons.
Trait Implementations§
impl Eq for Ask
impl StructuralPartialEq for Ask
Auto Trait Implementations§
impl Forget for Ask
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§
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