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

pub struct Card {
    pub title: String,
    pub subtitle: String,
    pub text: String,
    pub image: Option<Image>,
    pub image_fill: i32,
    pub button: Option<Link>,
}

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

Fields

title: String

Overall title of the card. Optional.

subtitle: String

Optional.

text: String

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

image: Option<Image>

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

image_fill: i32

How the image background will be filled. Optional.

button: Option<Link>

Button. Optional.

Implementations

impl Card[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 Card[src]

impl Debug for Card[src]

impl Default for Card[src]

impl Message for Card[src]

impl PartialEq<Card> for Card[src]

impl StructuralPartialEq for Card[src]

Auto Trait Implementations

impl RefUnwindSafe for Card

impl Send for Card

impl Sync for Card

impl Unpin for Card

impl UnwindSafe for Card

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]