pub struct PromptButton {
pub id: String,
pub label: String,
pub style: ButtonStyle,
pub form: Option<Form>,
}Expand description
A button under the prompt message. With a Form, pressing it opens the form and the
answer carries the values.
Fields§
§id: StringKey of the button in the answer.
label: StringText on the button.
style: ButtonStyleLook.
form: Option<Form>A form to fill in before the answer is sent.
Trait Implementations§
Source§impl Clone for PromptButton
impl Clone for PromptButton
Source§impl Debug for PromptButton
impl Debug for PromptButton
Source§impl<'de> Deserialize<'de> for PromptButton
impl<'de> Deserialize<'de> for PromptButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PromptButton
Source§impl PartialEq for PromptButton
impl PartialEq for PromptButton
Source§impl Serialize for PromptButton
impl Serialize for PromptButton
impl StructuralPartialEq for PromptButton
Auto Trait Implementations§
impl Freeze for PromptButton
impl RefUnwindSafe for PromptButton
impl Send for PromptButton
impl Sync for PromptButton
impl Unpin for PromptButton
impl UnsafeUnpin for PromptButton
impl UnwindSafe for PromptButton
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