Struct google_chat1::WidgetMarkup
source · pub struct WidgetMarkup {
pub buttons: Option<Vec<Button>>,
pub text_paragraph: Option<TextParagraph>,
pub image: Option<Image>,
pub key_value: Option<KeyValue>,
}
Expand description
A widget is a UI element that presents texts, images, etc.
This type is not used in any activity, and only used as part of another schema.
Fields
A list of buttons. Buttons is also oneof data and only one of these fields should be set.
text_paragraph: Option<TextParagraph>
Display a text paragraph in this widget.
image: Option<Image>
Display an image in this widget.
key_value: Option<KeyValue>
Display a key value item in this widget.
Trait Implementations
sourceimpl Clone for WidgetMarkup
impl Clone for WidgetMarkup
sourcefn clone(&self) -> WidgetMarkup
fn clone(&self) -> WidgetMarkup
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WidgetMarkup
impl Debug for WidgetMarkup
sourceimpl Default for WidgetMarkup
impl Default for WidgetMarkup
sourcefn default() -> WidgetMarkup
fn default() -> WidgetMarkup
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for WidgetMarkup
impl<'de> Deserialize<'de> for WidgetMarkup
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
sourceimpl Serialize for WidgetMarkup
impl Serialize for WidgetMarkup
impl Part for WidgetMarkup
Auto Trait Implementations
impl RefUnwindSafe for WidgetMarkup
impl Send for WidgetMarkup
impl Sync for WidgetMarkup
impl Unpin for WidgetMarkup
impl UnwindSafe for WidgetMarkup
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