pub struct SlackApiConversationsCanvasesCreateRequest {
pub channel_id: SlackChannelId,
pub document_content: Option<SlackCanvasDocumentContent>,
pub title: Option<String>,
}Expand description
A channel already holding a canvas answers channel_canvas_already_exists;
its id is in channel.properties.canvas from conversations.info.
Fields§
§channel_id: SlackChannelId§document_content: Option<SlackCanvasDocumentContent>§title: Option<String>Implementations§
Source§impl SlackApiConversationsCanvasesCreateRequest
impl SlackApiConversationsCanvasesCreateRequest
Sourcepub fn new(channel_id: SlackChannelId) -> Self
pub fn new(channel_id: SlackChannelId) -> Self
Creates a new SlackApiConversationsCanvasesCreateRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to value.
Sourcepub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
Returns self with channel_id set to value.
Sourcepub fn document_content(
&mut self,
value: SlackCanvasDocumentContent,
) -> &mut Self
pub fn document_content( &mut self, value: SlackCanvasDocumentContent, ) -> &mut Self
Sets document_content to Some(value).
Sourcepub fn reset_document_content(&mut self) -> &mut Self
pub fn reset_document_content(&mut self) -> &mut Self
Sets document_content to None.
Sourcepub fn mopt_document_content(
&mut self,
value: Option<SlackCanvasDocumentContent>,
) -> &mut Self
pub fn mopt_document_content( &mut self, value: Option<SlackCanvasDocumentContent>, ) -> &mut Self
Sets document_content to the given Option.
Sourcepub fn with_document_content(self, value: SlackCanvasDocumentContent) -> Self
pub fn with_document_content(self, value: SlackCanvasDocumentContent) -> Self
Returns self with document_content set to Some(value).
Sourcepub fn without_document_content(self) -> Self
pub fn without_document_content(self) -> Self
Returns self with document_content set to None.
Sourcepub fn opt_document_content(
self,
value: Option<SlackCanvasDocumentContent>,
) -> Self
pub fn opt_document_content( self, value: Option<SlackCanvasDocumentContent>, ) -> Self
Returns self with document_content set to the given Option.
Sourcepub fn reset_title(&mut self) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
Sets title to None.
Sourcepub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
Sets title to the given Option.
Sourcepub fn with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to Some(value).
Sourcepub fn without_title(self) -> Self
pub fn without_title(self) -> Self
Returns self with title set to None.