pub struct Message {Show 17 fields
pub id: Option<String>,
pub room_id: Option<String>,
pub room_type: Option<RoomType>,
pub to_person_id: Option<String>,
pub to_person_email: Option<String>,
pub text: Option<String>,
pub markdown: Option<String>,
pub html: Option<String>,
pub files: Option<Vec<String>>,
pub person_id: Option<String>,
pub person_email: Option<String>,
pub mentioned_people: Option<Vec<String>>,
pub mentioned_groups: Option<Vec<String>>,
pub attachments: Option<Vec<Attachment>>,
pub created: Option<String>,
pub updated: Option<String>,
pub parent_id: Option<String>,
}
Expand description
Webex Teams message information
Fields§
§id: Option<String>
The unique identifier for the message.
room_id: Option<String>
The room ID of the message.
room_type: Option<RoomType>
The room type.
to_person_id: Option<String>
The person ID of the recipient when sending a private 1:1 message.
to_person_email: Option<String>
The email address of the recipient when sending a private 1:1 message.
text: Option<String>
The message, in plain text. If markdown is specified this parameter may be optionally used to provide alternate text for UI clients that do not support rich text.
markdown: Option<String>
The message, in Markdown format.
html: Option<String>
The text content of the message, in HTML format. This read-only property is used by the Webex Teams clients.
files: Option<Vec<String>>
Public URLs for files attached to the message. For the supported media types and the behavior of file uploads, see Message Attachments.
person_id: Option<String>
The person ID of the message author.
person_email: Option<String>
The email address of the message author.
mentioned_people: Option<Vec<String>>
People IDs for anyone mentioned in the message.
mentioned_groups: Option<Vec<String>>
Group names for the groups mentioned in the message.
attachments: Option<Vec<Attachment>>
Message content attachments attached to the message.
created: Option<String>
The date and time the message was created.
updated: Option<String>
The date and time the message was updated, if it was edited.
parent_id: Option<String>
The ID of the “parent” message (the start of the reply chain)
Implementations§
source§impl Message
impl Message
sourcepub fn reply(&self) -> MessageOut
pub fn reply(&self) -> MessageOut
Reply to a message.
Posts the reply in the same chain as the replied-to message.
Contrast with MessageOut::from()
which only replies in the same room.