pub struct Message {Show 14 fields
pub action_response: Option<ActionResponse>,
pub annotations: Option<Vec<Annotation>>,
pub argument_text: Option<String>,
pub attachment: Option<Vec<Attachment>>,
pub cards: Option<Vec<Card>>,
pub create_time: Option<String>,
pub fallback_text: Option<String>,
pub name: Option<String>,
pub preview_text: Option<String>,
pub sender: Option<User>,
pub slash_command: Option<SlashCommand>,
pub space: Option<Space>,
pub text: Option<String>,
pub thread: Option<Thread>,
}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).
- conversations messages dms (request|response)
- messages dms (request|response)
- webhooks dms (request|response)
- conversations messages rooms (request|response)
- messages rooms (request|response)
- webhooks rooms (request|response)
- messages create spaces (request|response)
- messages get spaces (response)
- messages update spaces (request|response)
- webhooks spaces (request|response)
Fields§
§action_response: Option<ActionResponse>Input only. Parameters that a bot can use to configure how its response is posted.
annotations: Option<Vec<Annotation>>Output only. Annotations associated with the text in this message.
argument_text: Option<String>Plain-text body of the message with all bot mentions stripped out.
attachment: Option<Vec<Attachment>>User uploaded attachment.
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.
create_time: Option<String>Output only. The time at which the message was created in Hangouts Chat server.
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).
name: Option<String>no description provided
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.
sender: Option<User>The user who created the message.
slash_command: Option<SlashCommand>Slash command information, if applicable.
space: Option<Space>The space the message belongs to.
text: Option<String>Plain-text body of the message.
thread: Option<Thread>The thread the message belongs to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn 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>,
impl RequestValue for Message
impl ResponseResult for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more