Enum webex::adaptive_card::Action
source · pub enum Action {
Submit {
data: Option<HashMap<String, String>>,
title: Option<String>,
style: Option<ActionStyle>,
},
OpenUrl {
url: String,
title: Option<String>,
style: Option<ActionStyle>,
},
ShowCard {
card: AdaptiveCard,
title: Option<String>,
style: Option<ActionStyle>,
},
}
Expand description
Available Card Actions
Variants§
Submit
Fields
data: Option<HashMap<String, String>>
Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
style: Option<ActionStyle>
Controls the style of an Action, which influences how the action is displayed, spoken, etc.
Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot.
OpenUrl
Fields
style: Option<ActionStyle>
Controls the style of an Action, which influences how the action is displayed, spoken, etc.
When invoked, show the given url either by launching it in an external web browser or showing within an embedded web browser.
ShowCard
Fields
card: AdaptiveCard
The Adaptive Card to show.
style: Option<ActionStyle>
Controls the style of an Action, which influences how the action is displayed, spoken, etc.
Defines an AdaptiveCard which is shown to the user when the button or link is clicked.