#[non_exhaustive]pub struct BrowseCarouselCard {
pub items: Vec<BrowseCarouselCardItem>,
pub image_display_options: ImageDisplayOptions,
/* private fields */
}Available on crate features
answer-records or intents or participants or sessions only.Expand description
Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.items: Vec<BrowseCarouselCardItem>Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.
image_display_options: ImageDisplayOptionsOptional. Settings for displaying the image. Applies to every image in items.
Implementations§
Source§impl BrowseCarouselCard
impl BrowseCarouselCard
pub fn new() -> Self
Sourcepub fn set_items<T, V>(self, v: T) -> Self
pub fn set_items<T, V>(self, v: T) -> Self
Sets the value of items.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::intent::message::browse_carousel_card::BrowseCarouselCardItem;
let x = BrowseCarouselCard::new()
.set_items([
BrowseCarouselCardItem::default()/* use setters */,
BrowseCarouselCardItem::default()/* use (different) setters */,
]);Sourcepub fn set_image_display_options<T: Into<ImageDisplayOptions>>(
self,
v: T,
) -> Self
pub fn set_image_display_options<T: Into<ImageDisplayOptions>>( self, v: T, ) -> Self
Sets the value of image_display_options.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::intent::message::browse_carousel_card::ImageDisplayOptions;
let x0 = BrowseCarouselCard::new().set_image_display_options(ImageDisplayOptions::Gray);
let x1 = BrowseCarouselCard::new().set_image_display_options(ImageDisplayOptions::White);
let x2 = BrowseCarouselCard::new().set_image_display_options(ImageDisplayOptions::Cropped);Trait Implementations§
Source§impl Clone for BrowseCarouselCard
impl Clone for BrowseCarouselCard
Source§fn clone(&self) -> BrowseCarouselCard
fn clone(&self) -> BrowseCarouselCard
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowseCarouselCard
impl Debug for BrowseCarouselCard
Source§impl Default for BrowseCarouselCard
impl Default for BrowseCarouselCard
Source§fn default() -> BrowseCarouselCard
fn default() -> BrowseCarouselCard
Returns the “default value” for a type. Read more
Source§impl Message for BrowseCarouselCard
impl Message for BrowseCarouselCard
Source§impl PartialEq for BrowseCarouselCard
impl PartialEq for BrowseCarouselCard
impl StructuralPartialEq for BrowseCarouselCard
Auto Trait Implementations§
impl Freeze for BrowseCarouselCard
impl RefUnwindSafe for BrowseCarouselCard
impl Send for BrowseCarouselCard
impl Sync for BrowseCarouselCard
impl Unpin for BrowseCarouselCard
impl UnwindSafe for BrowseCarouselCard
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
Mutably borrows from an owned value. Read more