Enum google_api_proto::google::cloud::dialogflow::v2beta1::intent::message::browse_carousel_card::ImageDisplayOptions
source · #[repr(i32)]pub enum ImageDisplayOptions {
Unspecified = 0,
Gray = 1,
White = 2,
Cropped = 3,
BlurredBackground = 4,
}
Expand description
Image display options for Actions on Google. This should be used for when the image’s aspect ratio does not match the image container’s aspect ratio.
Variants§
Unspecified = 0
Fill the gaps between the image and the image container with gray bars.
Gray = 1
Fill the gaps between the image and the image container with gray bars.
White = 2
Fill the gaps between the image and the image container with white bars.
Cropped = 3
Image is scaled such that the image width and height match or exceed the container dimensions. This may crop the top and bottom of the image if the scaled image height is greater than the container height, or crop the left and right of the image if the scaled image width is greater than the container width. This is similar to “Zoom Mode” on a widescreen TV when playing a 4:3 video.
BlurredBackground = 4
Pad the gaps between image and image frame with a blurred copy of the same image.
Implementations§
source§impl ImageDisplayOptions
impl ImageDisplayOptions
sourcepub fn from_i32(value: i32) -> Option<ImageDisplayOptions>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ImageDisplayOptions>
Converts an i32
to a ImageDisplayOptions
, or None
if value
is not a valid variant.
source§impl ImageDisplayOptions
impl ImageDisplayOptions
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ImageDisplayOptions
impl Clone for ImageDisplayOptions
source§fn clone(&self) -> ImageDisplayOptions
fn clone(&self) -> ImageDisplayOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageDisplayOptions
impl Debug for ImageDisplayOptions
source§impl Default for ImageDisplayOptions
impl Default for ImageDisplayOptions
source§fn default() -> ImageDisplayOptions
fn default() -> ImageDisplayOptions
source§impl From<ImageDisplayOptions> for i32
impl From<ImageDisplayOptions> for i32
source§fn from(value: ImageDisplayOptions) -> i32
fn from(value: ImageDisplayOptions) -> i32
source§impl Hash for ImageDisplayOptions
impl Hash for ImageDisplayOptions
source§impl Ord for ImageDisplayOptions
impl Ord for ImageDisplayOptions
source§fn cmp(&self, other: &ImageDisplayOptions) -> Ordering
fn cmp(&self, other: &ImageDisplayOptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ImageDisplayOptions
impl PartialEq for ImageDisplayOptions
source§fn eq(&self, other: &ImageDisplayOptions) -> bool
fn eq(&self, other: &ImageDisplayOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ImageDisplayOptions
impl PartialOrd for ImageDisplayOptions
source§fn partial_cmp(&self, other: &ImageDisplayOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageDisplayOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ImageDisplayOptions
impl TryFrom<i32> for ImageDisplayOptions
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ImageDisplayOptions, UnknownEnumValue>
fn try_from(value: i32) -> Result<ImageDisplayOptions, UnknownEnumValue>
impl Copy for ImageDisplayOptions
impl Eq for ImageDisplayOptions
impl StructuralPartialEq for ImageDisplayOptions
Auto Trait Implementations§
impl Freeze for ImageDisplayOptions
impl RefUnwindSafe for ImageDisplayOptions
impl Send for ImageDisplayOptions
impl Sync for ImageDisplayOptions
impl Unpin for ImageDisplayOptions
impl UnwindSafe for ImageDisplayOptions
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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