Struct google_chat1::Section
source · pub struct Section {
pub widgets: Option<Vec<WidgetMarkup>>,
pub header: Option<String>,
}
Expand description
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).
This type is not used in any activity, and only used as part of another schema.
Fields
widgets: Option<Vec<WidgetMarkup>>
A section must contain at least 1 widget.
header: Option<String>
The header of the section, text formatted supported.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for Section
Auto Trait Implementations
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more