GoogleApi.Chat.V1.Model.Card (google_api_chat v0.26.0) View Source

A card is a UI element that can contain UI widgets such as texts, images.

Attributes

  • cardActions (type: list(GoogleApi.Chat.V1.Model.CardAction.t), default: nil) - The actions of this card.
  • header (type: GoogleApi.Chat.V1.Model.CardHeader.t, default: nil) - The header of the card. A header usually contains a title and an image.
  • name (type: String.t, default: nil) - Name of the card.
  • sections (type: list(GoogleApi.Chat.V1.Model.Section.t), default: nil) - Sections are separated by a line divider.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Chat.V1.Model.Card{
  cardActions: [GoogleApi.Chat.V1.Model.CardAction.t()] | nil,
  header: GoogleApi.Chat.V1.Model.CardHeader.t() | nil,
  name: String.t() | nil,
  sections: [GoogleApi.Chat.V1.Model.Section.t()] | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.