pub struct Prompt {
pub id: String,
pub text: String,
pub buttons: Vec<PromptButton>,
pub allowed: Vec<UserId>,
}Expand description
A message with buttons, shown in one conversation.
Fields§
§id: StringUnique id, chosen by the runtime.
text: StringThe message, already rendered for the channel.
One to five buttons.
allowed: Vec<UserId>Who may answer; anyone in the conversation when empty. Others are told it is not theirs.
Implementations§
Trait Implementations§
impl Eq for Prompt
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnsafeUnpin for Prompt
impl UnwindSafe for Prompt
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