#[non_exhaustive]pub enum Message {
Show 14 variants
Text(Box<Text>),
Image(Box<Image>),
QuickReplies(Box<QuickReplies>),
Card(Box<Card>),
Payload(Box<Struct>),
SimpleResponses(Box<SimpleResponses>),
BasicCard(Box<BasicCard>),
Suggestions(Box<Suggestions>),
LinkOutSuggestion(Box<LinkOutSuggestion>),
ListSelect(Box<ListSelect>),
CarouselSelect(Box<CarouselSelect>),
BrowseCarouselCard(Box<BrowseCarouselCard>),
TableCard(Box<TableCard>),
MediaContent(Box<MediaContent>),
}Available on crate features
answer-records or intents or participants or sessions only.Expand description
Required. The rich response message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(Box<Text>)
The text response.
Image(Box<Image>)
The image response.
QuickReplies(Box<QuickReplies>)
The quick replies response.
Card(Box<Card>)
The card response.
Payload(Box<Struct>)
A custom platform-specific response.
SimpleResponses(Box<SimpleResponses>)
The voice and text-only responses for Actions on Google.
BasicCard(Box<BasicCard>)
The basic card response for Actions on Google.
Suggestions(Box<Suggestions>)
The suggestion chips for Actions on Google.
LinkOutSuggestion(Box<LinkOutSuggestion>)
The link out suggestion chip for Actions on Google.
ListSelect(Box<ListSelect>)
The list card response for Actions on Google.
CarouselSelect(Box<CarouselSelect>)
The carousel card response for Actions on Google.
BrowseCarouselCard(Box<BrowseCarouselCard>)
Browse carousel card for Actions on Google.
TableCard(Box<TableCard>)
Table card for Actions on Google.
MediaContent(Box<MediaContent>)
The media content card for Actions on Google.
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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