Struct slack_api::chat::PostMessageRequest [] [src]

pub struct PostMessageRequest<'a> {
    pub channel: &'a str,
    pub text: &'a str,
    pub parse: Option<&'a str>,
    pub link_names: Option<bool>,
    pub attachments: Option<&'a str>,
    pub unfurl_links: Option<bool>,
    pub unfurl_media: Option<bool>,
    pub username: Option<&'a str>,
    pub as_user: Option<bool>,
    pub icon_url: Option<&'a str>,
    pub icon_emoji: Option<&'a str>,
    pub thread_ts: Option<&'a str>,
    pub reply_broadcast: Option<bool>,
}

Fields

[]

Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See below for more details.

[]

Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead.

[]

Change how messages are treated. Defaults to none. See below.

[]

Find and link channel names and usernames.

[]

Structured message attachments.

[]

Pass true to enable unfurling of primarily text-based content.

[]

Pass false to disable unfurling of media content.

[]

Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.

[]

Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.

[]

URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.

[]

Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.

[]

Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.

[]

Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.

Trait Implementations

impl<'a> Clone for PostMessageRequest<'a>
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl<'a> Default for PostMessageRequest<'a>
[src]

[]

Returns the "default value" for a type. Read more

impl<'a> Debug for PostMessageRequest<'a>
[src]

[]

Formats the value using the given formatter.