[][src]Struct gcp_client::google::cloud::dialogflow::v2beta1::intent::message::rbm_card_content::RbmMedia

pub struct RbmMedia {
    pub file_uri: String,
    pub thumbnail_uri: String,
    pub height: i32,
}

Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported:

Image Types

  • image/jpeg
  • image/jpg'
  • image/gif
  • image/png

Video Types

  • video/h263
  • video/m4v
  • video/mp4
  • video/mpeg
  • video/mpeg4
  • video/webm

Fields

file_uri: String

Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.

thumbnail_uri: String

Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.

height: i32

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. (https://goo.gl/NeFCjz). For a standalone card with horizontal layout, height is not customizable, and this field is ignored.

Implementations

impl RbmMedia[src]

pub fn height(&self) -> Height[src]

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

pub fn set_height(&mut self, value: Height)[src]

Sets height to the provided enum value.

Trait Implementations

impl Clone for RbmMedia[src]

impl Debug for RbmMedia[src]

impl Default for RbmMedia[src]

impl Message for RbmMedia[src]

impl PartialEq<RbmMedia> for RbmMedia[src]

impl StructuralPartialEq for RbmMedia[src]

Auto Trait Implementations

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, 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>, 

impl<T> WithSubscriber for T[src]