Struct google_chat1::Message

source ·
pub struct Message {
    pub action_response: Option<ActionResponse>,
    pub name: Option<String>,
    pub thread: Option<Thread>,
    pub space: Option<Space>,
    pub text: Option<String>,
    pub fallback_text: Option<String>,
    pub create_time: Option<String>,
    pub argument_text: Option<String>,
    pub cards: Option<Vec<Card>>,
    pub preview_text: Option<String>,
    pub annotations: Option<Vec<Annotation>>,
    pub sender: Option<User>,
}
Expand description

A message in Hangouts Chat.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

action_response: Option<ActionResponse>

Input only. Parameters that a bot can use to configure how its response is posted.

name: Option<String>

Resource name, in the form “spaces//messages/”.

Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4

thread: Option<Thread>

The thread the message belongs to.

space: Option<Space>

The space the message belongs to.

text: Option<String>

Plain-text body of the message.

fallback_text: Option<String>

A plain-text description of the message’s cards, used when the actual cards cannot be displayed (e.g. mobile notifications).

create_time: Option<String>

Output only. The time at which the message was created in Hangouts Chat server.

argument_text: Option<String>

Plain-text body of the message with all bot mentions stripped out.

cards: Option<Vec<Card>>

Rich, formatted and interactive cards that can be used to display UI elements such as: formatted texts, buttons, clickable images. Cards are normally displayed below the plain-text body of the message.

preview_text: Option<String>

Text for generating preview chips. This text will not be displayed to the user, but any links to images, web pages, videos, etc. included here will generate preview chips.

annotations: Option<Vec<Annotation>>

Output only. Annotations associated with the text in this message.

sender: Option<User>

The user who created the message.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Get the TypeId of this object.