pub struct Column {
pub horizontal_size_style: i32,
pub horizontal_alignment: i32,
pub vertical_alignment: i32,
pub widgets: Vec<Widgets>,
}
Expand description
A column.
Google Workspace Add-ons and Chat apps: Columns for Google Workspace Add-ons are in Developer Preview.
Fields§
§horizontal_size_style: i32
Specifies how a column fills the width of the card.
horizontal_alignment: i32
Specifies whether widgets align to the left, right, or center of a column.
vertical_alignment: i32
Specifies whether widgets align to the top, bottom, or center of a column.
widgets: Vec<Widgets>
An array of widgets included in a column. Widgets appear in the order that they are specified.
Implementations§
source§impl Column
impl Column
sourcepub fn horizontal_size_style(&self) -> HorizontalSizeStyle
pub fn horizontal_size_style(&self) -> HorizontalSizeStyle
Returns the enum value of horizontal_size_style
, or the default if the field is set to an invalid enum value.
sourcepub fn set_horizontal_size_style(&mut self, value: HorizontalSizeStyle)
pub fn set_horizontal_size_style(&mut self, value: HorizontalSizeStyle)
Sets horizontal_size_style
to the provided enum value.
sourcepub fn horizontal_alignment(&self) -> HorizontalAlignment
pub fn horizontal_alignment(&self) -> HorizontalAlignment
Returns the enum value of horizontal_alignment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_horizontal_alignment(&mut self, value: HorizontalAlignment)
pub fn set_horizontal_alignment(&mut self, value: HorizontalAlignment)
Sets horizontal_alignment
to the provided enum value.
sourcepub fn vertical_alignment(&self) -> VerticalAlignment
pub fn vertical_alignment(&self) -> VerticalAlignment
Returns the enum value of vertical_alignment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_vertical_alignment(&mut self, value: VerticalAlignment)
pub fn set_vertical_alignment(&mut self, value: VerticalAlignment)
Sets vertical_alignment
to the provided enum value.
Trait Implementations§
source§impl Message for Column
impl Message for Column
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 Column
impl PartialEq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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