Struct gapi_grpc::google::actions::sdk::v2::interactionmodel::prompt::StaticCardPrompt[][src]

pub struct StaticCardPrompt {
    pub title: String,
    pub subtitle: String,
    pub text: String,
    pub image: Option<StaticImagePrompt>,
    pub image_fill: i32,
    pub button: Option<StaticLinkPrompt>,
}

A basic card for displaying some information, e.g. an image and/or text.

Fields

title: String

Optional. Overall title of the card.

subtitle: String

Optional. Subtitle of the card.

text: String

Required. Body text of the card which is needed unless image is present. Supports a limited set of markdown syntax for formatting.

image: Option<StaticImagePrompt>

Optional. A hero image for the card. The height is fixed to 192dp.

image_fill: i32

Optional. How the image background will be filled.

button: Option<StaticLinkPrompt>

Optional. A clickable button to be shown in the Card.

Implementations

impl StaticCardPrompt[src]

pub fn image_fill(&self) -> ImageFill[src]

Returns the enum value of image_fill, or the default if the field is set to an invalid enum value.

pub fn set_image_fill(&mut self, value: ImageFill)[src]

Sets image_fill to the provided enum value.

Trait Implementations

impl Clone for StaticCardPrompt[src]

impl Debug for StaticCardPrompt[src]

impl Default for StaticCardPrompt[src]

impl Message for StaticCardPrompt[src]

impl PartialEq<StaticCardPrompt> for StaticCardPrompt[src]

impl StructuralPartialEq for StaticCardPrompt[src]

Auto Trait Implementations

impl RefUnwindSafe for StaticCardPrompt

impl Send for StaticCardPrompt

impl Sync for StaticCardPrompt

impl Unpin for StaticCardPrompt

impl UnwindSafe for StaticCardPrompt

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]