Google Chat Types
type helper for construct Google Chat message
About Google Chat Message
There two type of Google Chat message
- Text Message
- Card Message
they are all represented as a json string.
Text Message represented like
Card Message represented like
the relationship between elements of cards should looks like below
How to use this crate
you should construct Cards or Text struct, then serialize them to json string as a Google Chat API(for instance incoming webhook) http request body.