pub struct SlackApiChatStartStreamRequest {
pub channel: SlackChannelId,
pub thread_ts: Option<SlackTs>,
pub recipient_user_id: Option<SlackUserId>,
pub recipient_team_id: Option<SlackTeamId>,
pub markdown_text: Option<String>,
pub chunks: Option<Vec<SlackStreamChunk>>,
pub task_display_mode: Option<SlackStreamTaskDisplayMode>,
pub icon_emoji: Option<SlackEmoji>,
pub icon_url: Option<Url>,
pub username: Option<String>,
}Fields§
§channel: SlackChannelId§thread_ts: Option<SlackTs>§recipient_user_id: Option<SlackUserId>§recipient_team_id: Option<SlackTeamId>§markdown_text: Option<String>§chunks: Option<Vec<SlackStreamChunk>>§task_display_mode: Option<SlackStreamTaskDisplayMode>§icon_emoji: Option<SlackEmoji>§icon_url: Option<Url>§username: Option<String>Implementations§
Source§impl SlackApiChatStartStreamRequest
impl SlackApiChatStartStreamRequest
Sourcepub fn new(channel: SlackChannelId) -> Self
pub fn new(channel: SlackChannelId) -> Self
Creates a new SlackApiChatStartStreamRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to value.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to value.
Sourcepub fn reset_thread_ts(&mut self) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
Sets thread_ts to None.
Sourcepub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets thread_ts to the given Option.
Sourcepub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
Returns self with thread_ts set to Some(value).
Sourcepub fn without_thread_ts(self) -> Self
pub fn without_thread_ts(self) -> Self
Returns self with thread_ts set to None.
Sourcepub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
Returns self with thread_ts set to the given Option.
Sourcepub fn recipient_user_id(&mut self, value: SlackUserId) -> &mut Self
pub fn recipient_user_id(&mut self, value: SlackUserId) -> &mut Self
Sets recipient_user_id to Some(value).
Sourcepub fn reset_recipient_user_id(&mut self) -> &mut Self
pub fn reset_recipient_user_id(&mut self) -> &mut Self
Sets recipient_user_id to None.
Sourcepub fn mopt_recipient_user_id(
&mut self,
value: Option<SlackUserId>,
) -> &mut Self
pub fn mopt_recipient_user_id( &mut self, value: Option<SlackUserId>, ) -> &mut Self
Sets recipient_user_id to the given Option.
Sourcepub fn with_recipient_user_id(self, value: SlackUserId) -> Self
pub fn with_recipient_user_id(self, value: SlackUserId) -> Self
Returns self with recipient_user_id set to Some(value).
Sourcepub fn without_recipient_user_id(self) -> Self
pub fn without_recipient_user_id(self) -> Self
Returns self with recipient_user_id set to None.
Sourcepub fn opt_recipient_user_id(self, value: Option<SlackUserId>) -> Self
pub fn opt_recipient_user_id(self, value: Option<SlackUserId>) -> Self
Returns self with recipient_user_id set to the given Option.
Sourcepub fn recipient_team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn recipient_team_id(&mut self, value: SlackTeamId) -> &mut Self
Sets recipient_team_id to Some(value).
Sourcepub fn reset_recipient_team_id(&mut self) -> &mut Self
pub fn reset_recipient_team_id(&mut self) -> &mut Self
Sets recipient_team_id to None.
Sourcepub fn mopt_recipient_team_id(
&mut self,
value: Option<SlackTeamId>,
) -> &mut Self
pub fn mopt_recipient_team_id( &mut self, value: Option<SlackTeamId>, ) -> &mut Self
Sets recipient_team_id to the given Option.
Sourcepub fn with_recipient_team_id(self, value: SlackTeamId) -> Self
pub fn with_recipient_team_id(self, value: SlackTeamId) -> Self
Returns self with recipient_team_id set to Some(value).
Sourcepub fn without_recipient_team_id(self) -> Self
pub fn without_recipient_team_id(self) -> Self
Returns self with recipient_team_id set to None.
Sourcepub fn opt_recipient_team_id(self, value: Option<SlackTeamId>) -> Self
pub fn opt_recipient_team_id(self, value: Option<SlackTeamId>) -> Self
Returns self with recipient_team_id set to the given Option.
Sourcepub fn markdown_text(&mut self, value: String) -> &mut Self
pub fn markdown_text(&mut self, value: String) -> &mut Self
Sets markdown_text to Some(value).
Sourcepub fn reset_markdown_text(&mut self) -> &mut Self
pub fn reset_markdown_text(&mut self) -> &mut Self
Sets markdown_text to None.
Sourcepub fn mopt_markdown_text(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_markdown_text(&mut self, value: Option<String>) -> &mut Self
Sets markdown_text to the given Option.
Sourcepub fn with_markdown_text(self, value: String) -> Self
pub fn with_markdown_text(self, value: String) -> Self
Returns self with markdown_text set to Some(value).
Sourcepub fn without_markdown_text(self) -> Self
pub fn without_markdown_text(self) -> Self
Returns self with markdown_text set to None.
Sourcepub fn opt_markdown_text(self, value: Option<String>) -> Self
pub fn opt_markdown_text(self, value: Option<String>) -> Self
Returns self with markdown_text set to the given Option.
Sourcepub fn chunks(&mut self, value: Vec<SlackStreamChunk>) -> &mut Self
pub fn chunks(&mut self, value: Vec<SlackStreamChunk>) -> &mut Self
Sets chunks to Some(value).
Sourcepub fn reset_chunks(&mut self) -> &mut Self
pub fn reset_chunks(&mut self) -> &mut Self
Sets chunks to None.
Sourcepub fn mopt_chunks(&mut self, value: Option<Vec<SlackStreamChunk>>) -> &mut Self
pub fn mopt_chunks(&mut self, value: Option<Vec<SlackStreamChunk>>) -> &mut Self
Sets chunks to the given Option.
Sourcepub fn with_chunks(self, value: Vec<SlackStreamChunk>) -> Self
pub fn with_chunks(self, value: Vec<SlackStreamChunk>) -> Self
Returns self with chunks set to Some(value).
Sourcepub fn without_chunks(self) -> Self
pub fn without_chunks(self) -> Self
Returns self with chunks set to None.
Sourcepub fn opt_chunks(self, value: Option<Vec<SlackStreamChunk>>) -> Self
pub fn opt_chunks(self, value: Option<Vec<SlackStreamChunk>>) -> Self
Returns self with chunks set to the given Option.
Sourcepub fn task_display_mode(
&mut self,
value: SlackStreamTaskDisplayMode,
) -> &mut Self
pub fn task_display_mode( &mut self, value: SlackStreamTaskDisplayMode, ) -> &mut Self
Sets task_display_mode to Some(value).
Sourcepub fn reset_task_display_mode(&mut self) -> &mut Self
pub fn reset_task_display_mode(&mut self) -> &mut Self
Sets task_display_mode to None.
Sourcepub fn mopt_task_display_mode(
&mut self,
value: Option<SlackStreamTaskDisplayMode>,
) -> &mut Self
pub fn mopt_task_display_mode( &mut self, value: Option<SlackStreamTaskDisplayMode>, ) -> &mut Self
Sets task_display_mode to the given Option.
Sourcepub fn with_task_display_mode(self, value: SlackStreamTaskDisplayMode) -> Self
pub fn with_task_display_mode(self, value: SlackStreamTaskDisplayMode) -> Self
Returns self with task_display_mode set to Some(value).
Sourcepub fn without_task_display_mode(self) -> Self
pub fn without_task_display_mode(self) -> Self
Returns self with task_display_mode set to None.
Sourcepub fn opt_task_display_mode(
self,
value: Option<SlackStreamTaskDisplayMode>,
) -> Self
pub fn opt_task_display_mode( self, value: Option<SlackStreamTaskDisplayMode>, ) -> Self
Returns self with task_display_mode set to the given Option.
Sourcepub fn icon_emoji(&mut self, value: SlackEmoji) -> &mut Self
pub fn icon_emoji(&mut self, value: SlackEmoji) -> &mut Self
Sets icon_emoji to Some(value).
Sourcepub fn reset_icon_emoji(&mut self) -> &mut Self
pub fn reset_icon_emoji(&mut self) -> &mut Self
Sets icon_emoji to None.
Sourcepub fn mopt_icon_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
pub fn mopt_icon_emoji(&mut self, value: Option<SlackEmoji>) -> &mut Self
Sets icon_emoji to the given Option.
Sourcepub fn with_icon_emoji(self, value: SlackEmoji) -> Self
pub fn with_icon_emoji(self, value: SlackEmoji) -> Self
Returns self with icon_emoji set to Some(value).
Sourcepub fn without_icon_emoji(self) -> Self
pub fn without_icon_emoji(self) -> Self
Returns self with icon_emoji set to None.
Sourcepub fn opt_icon_emoji(self, value: Option<SlackEmoji>) -> Self
pub fn opt_icon_emoji(self, value: Option<SlackEmoji>) -> Self
Returns self with icon_emoji set to the given Option.
Sourcepub fn reset_icon_url(&mut self) -> &mut Self
pub fn reset_icon_url(&mut self) -> &mut Self
Sets icon_url to None.
Sourcepub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
Sets icon_url to the given Option.
Sourcepub fn with_icon_url(self, value: Url) -> Self
pub fn with_icon_url(self, value: Url) -> Self
Returns self with icon_url set to Some(value).
Sourcepub fn without_icon_url(self) -> Self
pub fn without_icon_url(self) -> Self
Returns self with icon_url set to None.
Sourcepub fn opt_icon_url(self, value: Option<Url>) -> Self
pub fn opt_icon_url(self, value: Option<Url>) -> Self
Returns self with icon_url set to the given Option.
Sourcepub fn reset_username(&mut self) -> &mut Self
pub fn reset_username(&mut self) -> &mut Self
Sets username to None.
Sourcepub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
Sets username to the given Option.
Sourcepub fn with_username(self, value: String) -> Self
pub fn with_username(self, value: String) -> Self
Returns self with username set to Some(value).
Sourcepub fn without_username(self) -> Self
pub fn without_username(self) -> Self
Returns self with username set to None.
Sourcepub fn opt_username(self, value: Option<String>) -> Self
pub fn opt_username(self, value: Option<String>) -> Self
Returns self with username set to the given Option.