Struct google_api_proto::google::cloud::dialogflow::v2beta1::intent::message::RbmStandaloneCard
source · pub struct RbmStandaloneCard {
pub card_orientation: i32,
pub thumbnail_image_alignment: i32,
pub card_content: Option<RbmCardContent>,
}
Expand description
Standalone Rich Business Messaging (RBM) rich card.
Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions.
You can group multiple rich cards into one using [RbmCarouselCard][google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard] but carousel cards will give you less control over the card layout.
Fields§
§card_orientation: i32
Required. Orientation of the card.
thumbnail_image_alignment: i32
Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.
card_content: Option<RbmCardContent>
Required. Card content.
Implementations§
source§impl RbmStandaloneCard
impl RbmStandaloneCard
sourcepub fn card_orientation(&self) -> CardOrientation
pub fn card_orientation(&self) -> CardOrientation
Returns the enum value of card_orientation
, or the default if the field is set to an invalid enum value.
sourcepub fn set_card_orientation(&mut self, value: CardOrientation)
pub fn set_card_orientation(&mut self, value: CardOrientation)
Sets card_orientation
to the provided enum value.
sourcepub fn thumbnail_image_alignment(&self) -> ThumbnailImageAlignment
pub fn thumbnail_image_alignment(&self) -> ThumbnailImageAlignment
Returns the enum value of thumbnail_image_alignment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_thumbnail_image_alignment(&mut self, value: ThumbnailImageAlignment)
pub fn set_thumbnail_image_alignment(&mut self, value: ThumbnailImageAlignment)
Sets thumbnail_image_alignment
to the provided enum value.
Trait Implementations§
source§impl Clone for RbmStandaloneCard
impl Clone for RbmStandaloneCard
source§fn clone(&self) -> RbmStandaloneCard
fn clone(&self) -> RbmStandaloneCard
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RbmStandaloneCard
impl Debug for RbmStandaloneCard
source§impl Default for RbmStandaloneCard
impl Default for RbmStandaloneCard
source§impl Message for RbmStandaloneCard
impl Message for RbmStandaloneCard
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RbmStandaloneCard
impl PartialEq for RbmStandaloneCard
source§fn eq(&self, other: &RbmStandaloneCard) -> bool
fn eq(&self, other: &RbmStandaloneCard) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RbmStandaloneCard
Auto Trait Implementations§
impl Freeze for RbmStandaloneCard
impl RefUnwindSafe for RbmStandaloneCard
impl Send for RbmStandaloneCard
impl Sync for RbmStandaloneCard
impl Unpin for RbmStandaloneCard
impl UnwindSafe for RbmStandaloneCard
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request