pub struct SlackApiPostWebhookMessageRequest {
pub content: SlackMessageContent,
pub thread_ts: Option<SlackTs>,
pub replace_original: Option<bool>,
pub delete_original: Option<bool>,
}Fields§
§content: SlackMessageContent§thread_ts: Option<SlackTs>§replace_original: Option<bool>§delete_original: Option<bool>Implementations§
Source§impl SlackApiPostWebhookMessageRequest
impl SlackApiPostWebhookMessageRequest
Sourcepub fn new(content: SlackMessageContent) -> Self
pub fn new(content: SlackMessageContent) -> Self
Creates a new SlackApiPostWebhookMessageRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn content(&mut self, value: SlackMessageContent) -> &mut Self
Sets content to value.
Sourcepub fn with_content(self, value: SlackMessageContent) -> Self
pub fn with_content(self, value: SlackMessageContent) -> Self
Returns self with content 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 replace_original(&mut self, value: bool) -> &mut Self
pub fn replace_original(&mut self, value: bool) -> &mut Self
Sets replace_original to Some(value).
Sourcepub fn reset_replace_original(&mut self) -> &mut Self
pub fn reset_replace_original(&mut self) -> &mut Self
Sets replace_original to None.
Sourcepub fn mopt_replace_original(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_replace_original(&mut self, value: Option<bool>) -> &mut Self
Sets replace_original to the given Option.
Sourcepub fn with_replace_original(self, value: bool) -> Self
pub fn with_replace_original(self, value: bool) -> Self
Returns self with replace_original set to Some(value).
Sourcepub fn without_replace_original(self) -> Self
pub fn without_replace_original(self) -> Self
Returns self with replace_original set to None.
Sourcepub fn opt_replace_original(self, value: Option<bool>) -> Self
pub fn opt_replace_original(self, value: Option<bool>) -> Self
Returns self with replace_original set to the given Option.
Sourcepub fn delete_original(&mut self, value: bool) -> &mut Self
pub fn delete_original(&mut self, value: bool) -> &mut Self
Sets delete_original to Some(value).
Sourcepub fn reset_delete_original(&mut self) -> &mut Self
pub fn reset_delete_original(&mut self) -> &mut Self
Sets delete_original to None.
Sourcepub fn mopt_delete_original(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_delete_original(&mut self, value: Option<bool>) -> &mut Self
Sets delete_original to the given Option.
Sourcepub fn with_delete_original(self, value: bool) -> Self
pub fn with_delete_original(self, value: bool) -> Self
Returns self with delete_original set to Some(value).
Sourcepub fn without_delete_original(self) -> Self
pub fn without_delete_original(self) -> Self
Returns self with delete_original set to None.
Sourcepub fn opt_delete_original(self, value: Option<bool>) -> Self
pub fn opt_delete_original(self, value: Option<bool>) -> Self
Returns self with delete_original set to the given Option.