pub struct InteractionResponse {
pub session_id: String,
pub turn_id: String,
pub interaction_id: String,
pub choice_id: Option<String>,
pub choice_ids: Vec<String>,
pub text: Option<String>,
pub answer_texts: Vec<Option<String>>,
pub cancelled: bool,
}Expand description
User response to a pending runtime interaction.
Fields§
§session_id: StringSession owning the interaction.
turn_id: StringTurn that raised the interaction.
interaction_id: StringOpaque interaction identity provided by the service.
choice_id: Option<String>Opaque choice identity provided by the service, if selecting an option.
choice_ids: Vec<String>Opaque identities selected for each step in a wizard interaction.
text: Option<String>Free-form answer for text questions.
answer_texts: Vec<Option<String>>Free-form answers for each ordered wizard step.
cancelled: boolWhether the interaction was explicitly cancelled by the user.
Trait Implementations§
Source§impl Clone for InteractionResponse
impl Clone for InteractionResponse
Source§impl Debug for InteractionResponse
impl Debug for InteractionResponse
Source§impl<'de> Deserialize<'de> for InteractionResponse
impl<'de> Deserialize<'de> for InteractionResponse
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 InteractionResponse
Source§impl PartialEq for InteractionResponse
impl PartialEq for InteractionResponse
Source§impl Serialize for InteractionResponse
impl Serialize for InteractionResponse
impl StructuralPartialEq for InteractionResponse
Auto Trait Implementations§
impl Freeze for InteractionResponse
impl RefUnwindSafe for InteractionResponse
impl Send for InteractionResponse
impl Sync for InteractionResponse
impl Unpin for InteractionResponse
impl UnsafeUnpin for InteractionResponse
impl UnwindSafe for InteractionResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.