Struct google_chat1::Card
source · pub struct Card {
pub header: Option<CardHeader>,
pub card_actions: Option<Vec<CardAction>>,
pub name: Option<String>,
pub sections: Option<Vec<Section>>,
}
Expand description
A card is a UI element that can contain UI widgets such as texts, images.
This type is not used in any activity, and only used as part of another schema.
Fields
header: Option<CardHeader>
The header of the card. A header usually contains a title and an image.
card_actions: Option<Vec<CardAction>>
The actions of this card.
name: Option<String>
Name of the card.
sections: Option<Vec<Section>>
Sections are separated by a line divider.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
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 Card
Auto Trait Implementations
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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