Struct gapi_grpc::google::actions::sdk::v2::conversation::Prompt[][src]

pub struct Prompt {
    pub append: bool,
    pub override: bool,
    pub first_simple: Option<Simple>,
    pub content: Option<Content>,
    pub last_simple: Option<Simple>,
    pub suggestions: Vec<Suggestion>,
    pub link: Option<Link>,
    pub canvas: Option<Canvas>,
}

Represent a response to a user.

Fields

append: bool

Optional. Mode for how this messages should be merged with previously defined messages. “false” will clear all previously defined messages (first and last simple, content, suggestions link and canvas) and add messages defined in this prompt. “true” will add messages defined in this prompt to messages defined in previous responses. Setting this field to “true” will also enable appending to some fields inside Simple prompts, the Suggestion prompt and the Canvas prompt (part of the Content prompt). The Content and Link messages will always be overwritten if defined in the prompt. Default value is “false”.

override: bool

Optional. Mode for how this messages should be merged with previously defined messages. “true” clears all previously defined messages (first and last simple, content, suggestions link and canvas) and adds messages defined in this prompt. “false” adds messages defined in this prompt to messages defined in previous responses. Leaving this field to “false” also enables appending to some fields inside Simple prompts, the Suggestions prompt, and the Canvas prompt (part of the Content prompt). The Content and Link messages are always overwritten if defined in the prompt. Default value is “false”.

first_simple: Option<Simple>

Optional. The first voice and text-only response.

content: Option<Content>

Optional. A content like a card, list or media to display to the user.

last_simple: Option<Simple>

Optional. The last voice and text-only response.

suggestions: Vec<Suggestion>

Optional. Suggestions to be displayed to the user which will always appear at the end of the response. If the “override” field in the containing prompt is “false”, the titles defined in this field will be added to titles defined in any previously defined suggestions prompts and duplicate values will be removed.

link: Option<Link>

Optional. An additional suggestion chip that can link out to the associated app or site. The chip will be rendered with the title “Open ”. Max 20 chars.

canvas: Option<Canvas>

Optional. Represents a Interactive Canvas response to be sent to the user.

Trait Implementations

impl Clone for Prompt[src]

impl Debug for Prompt[src]

impl Default for Prompt[src]

impl Message for Prompt[src]

impl PartialEq<Prompt> for Prompt[src]

impl StructuralPartialEq for Prompt[src]

Auto Trait Implementations

impl RefUnwindSafe for Prompt

impl Send for Prompt

impl Sync for Prompt

impl Unpin for Prompt

impl UnwindSafe for Prompt

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]