Struct webex::types::MessageOut
source · pub struct MessageOut {
pub parent_id: Option<String>,
pub room_id: Option<String>,
pub to_person_id: Option<String>,
pub to_person_email: Option<String>,
pub text: Option<String>,
pub markdown: Option<String>,
pub files: Option<Vec<String>>,
pub attachments: Option<Vec<Attachment>>,
}
Expand description
Outgoing message
Fields§
§parent_id: Option<String>
The parent message to reply to.
room_id: Option<String>
The room ID of the message.
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. The maximum message length is 7439 bytes.
markdown: Option<String>
The message, in Markdown format. The maximum message length is 7439 bytes.
files: Option<Vec<String>>
The public URL to a binary file to be posted into the room. Only one file is allowed per message. Uploaded files are automatically converted into a format that all Webex Teams clients can render. For the supported media types and the behavior of uploads, see the Message Attachments Guide.
attachments: Option<Vec<Attachment>>
Content attachments to attach to the message. Only one card per message is supported.
Implementations§
source§impl MessageOut
impl MessageOut
sourcepub fn from_msg(msg: &Message) -> Self
👎Deprecated since 0.2.0: Please use the from instead
pub fn from_msg(msg: &Message) -> Self
Generates a new outgoing message from an existing message
Arguments
msg
- the template message
Use from_msg
to create a reply from a received message.
sourcepub fn add_attachment(&mut self, card: AdaptiveCard) -> &Self
pub fn add_attachment(&mut self, card: AdaptiveCard) -> &Self
Trait Implementations§
source§impl Clone for MessageOut
impl Clone for MessageOut
source§fn clone(&self) -> MessageOut
fn clone(&self) -> MessageOut
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more