Enum google_api_proto::google::actions::sdk::v2::conversation::image::ImageFill
source · #[repr(i32)]pub enum ImageFill {
Unspecified = 0,
Gray = 1,
White = 2,
Cropped = 3,
}
Expand description
Possible image display options for affecting the presentation of the image. This should be used for when the image’s aspect ratio does not match the image container’s aspect ratio.
Variants§
Unspecified = 0
Unspecified image fill.
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.
Implementations§
source§impl ImageFill
impl ImageFill
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 Ord for ImageFill
impl Ord for ImageFill
source§impl PartialEq for ImageFill
impl PartialEq for ImageFill
source§impl PartialOrd for ImageFill
impl PartialOrd for ImageFill
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 ImageFill
impl TryFrom<i32> for ImageFill
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for ImageFill
impl Eq for ImageFill
impl StructuralPartialEq for ImageFill
Auto Trait Implementations§
impl Freeze for ImageFill
impl RefUnwindSafe for ImageFill
impl Send for ImageFill
impl Sync for ImageFill
impl Unpin for ImageFill
impl UnwindSafe for ImageFill
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