pub struct PromptAnswer {
pub prompt: String,
pub button: String,
pub values: BTreeMap<String, Secret<String>>,
pub user: UserRef,
pub conversation: ConversationKey,
pub sent: SentRef,
}Expand description
Someone pressed a button (and filled in its form).
Fields§
§prompt: String§values: BTreeMap<String, Secret<String>>Form values by field id; never logged, stored or shown to the agent.
user: UserRefWho answered (the channel already checked Prompt::may_answer).
conversation: ConversationKeyWhere the prompt is.
sent: SentRefThe prompt message, to update with the outcome.
Trait Implementations§
Source§impl Clone for PromptAnswer
impl Clone for PromptAnswer
Auto Trait Implementations§
impl Freeze for PromptAnswer
impl RefUnwindSafe for PromptAnswer
impl Send for PromptAnswer
impl Sync for PromptAnswer
impl Unpin for PromptAnswer
impl UnsafeUnpin for PromptAnswer
impl UnwindSafe for PromptAnswer
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