pub struct ResponseCard {
pub content_type: Option<String>,
pub generic_attachments: Option<Vec<GenericAttachment>>,
pub version: Option<String>,
}
Expand description
If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values that are available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook
and fulfillmentActivity
on an intent).
Fields§
§content_type: Option<String>
The content type of the response.
generic_attachments: Option<Vec<GenericAttachment>>
An array of attachment objects representing options.
version: Option<String>
The version of the response card format.
Trait Implementations§
Source§impl Clone for ResponseCard
impl Clone for ResponseCard
Source§fn clone(&self) -> ResponseCard
fn clone(&self) -> ResponseCard
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseCard
impl Debug for ResponseCard
Source§impl Default for ResponseCard
impl Default for ResponseCard
Source§fn default() -> ResponseCard
fn default() -> ResponseCard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseCard
impl<'de> Deserialize<'de> for ResponseCard
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
Source§impl PartialEq for ResponseCard
impl PartialEq for ResponseCard
impl StructuralPartialEq for ResponseCard
Auto Trait Implementations§
impl Freeze for ResponseCard
impl RefUnwindSafe for ResponseCard
impl Send for ResponseCard
impl Sync for ResponseCard
impl Unpin for ResponseCard
impl UnwindSafe for ResponseCard
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