Enum google_api_proto::google::apps::card::v1::columns::column::HorizontalSizeStyle
source · #[repr(i32)]pub enum HorizontalSizeStyle {
Unspecified = 0,
FillAvailableSpace = 1,
FillMinimumSpace = 2,
}
Expand description
Specifies how a column fills the width of the card. The width of each
column depends on both the HorizontalSizeStyle
and the width of the
widgets within the column.
Google Workspace Add-ons and Chat apps: Columns for Google Workspace Add-ons are in Developer Preview.
Variants§
Unspecified = 0
Don’t use. Unspecified.
FillAvailableSpace = 1
Default value. Column fills the available space, up to 70% of the
card’s width. If both columns are set to FILL_AVAILABLE_SPACE
, each
column fills 50% of the space.
FillMinimumSpace = 2
Column fills the least amount of space possible and no more than 30% of the card’s width.
Implementations§
source§impl HorizontalSizeStyle
impl HorizontalSizeStyle
sourcepub fn from_i32(value: i32) -> Option<HorizontalSizeStyle>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<HorizontalSizeStyle>
Converts an i32
to a HorizontalSizeStyle
, or None
if value
is not a valid variant.
source§impl HorizontalSizeStyle
impl HorizontalSizeStyle
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 HorizontalSizeStyle
impl Clone for HorizontalSizeStyle
source§fn clone(&self) -> HorizontalSizeStyle
fn clone(&self) -> HorizontalSizeStyle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HorizontalSizeStyle
impl Debug for HorizontalSizeStyle
source§impl Default for HorizontalSizeStyle
impl Default for HorizontalSizeStyle
source§fn default() -> HorizontalSizeStyle
fn default() -> HorizontalSizeStyle
source§impl From<HorizontalSizeStyle> for i32
impl From<HorizontalSizeStyle> for i32
source§fn from(value: HorizontalSizeStyle) -> i32
fn from(value: HorizontalSizeStyle) -> i32
source§impl Hash for HorizontalSizeStyle
impl Hash for HorizontalSizeStyle
source§impl Ord for HorizontalSizeStyle
impl Ord for HorizontalSizeStyle
source§fn cmp(&self, other: &HorizontalSizeStyle) -> Ordering
fn cmp(&self, other: &HorizontalSizeStyle) -> 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 HorizontalSizeStyle
impl PartialEq for HorizontalSizeStyle
source§fn eq(&self, other: &HorizontalSizeStyle) -> bool
fn eq(&self, other: &HorizontalSizeStyle) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HorizontalSizeStyle
impl PartialOrd for HorizontalSizeStyle
source§fn partial_cmp(&self, other: &HorizontalSizeStyle) -> Option<Ordering>
fn partial_cmp(&self, other: &HorizontalSizeStyle) -> 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 HorizontalSizeStyle
impl TryFrom<i32> for HorizontalSizeStyle
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<HorizontalSizeStyle, UnknownEnumValue>
fn try_from(value: i32) -> Result<HorizontalSizeStyle, UnknownEnumValue>
impl Copy for HorizontalSizeStyle
impl Eq for HorizontalSizeStyle
impl StructuralPartialEq for HorizontalSizeStyle
Auto Trait Implementations§
impl Freeze for HorizontalSizeStyle
impl RefUnwindSafe for HorizontalSizeStyle
impl Send for HorizontalSizeStyle
impl Sync for HorizontalSizeStyle
impl Unpin for HorizontalSizeStyle
impl UnwindSafe for HorizontalSizeStyle
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