google_api_chat v0.6.0 GoogleApi.Chat.V1.Model.Button View Source

A button. Can be a text button or an image button.

Attributes

  • imageButton (GoogleApi.Chat.V1.Model.ImageButton.t): A button with image and onclick action. Defaults to nil.
  • textButton (GoogleApi.Chat.V1.Model.TextButton.t): A button with text and onclick action. Defaults to nil.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.Chat.V1.Model.Button{
  imageButton: GoogleApi.Chat.V1.Model.ImageButton.t(),
  textButton: GoogleApi.Chat.V1.Model.TextButton.t()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.