pub struct SlackApiCanvasesCreateRequest {
pub title: Option<String>,
pub document_content: Option<SlackCanvasDocumentContent>,
pub channel_id: Option<SlackChannelId>,
}Expand description
channel_id tabs the canvas in that channel and is required for free teams.
Fields§
§title: Option<String>§document_content: Option<SlackCanvasDocumentContent>§channel_id: Option<SlackChannelId>Implementations§
Source§impl SlackApiCanvasesCreateRequest
impl SlackApiCanvasesCreateRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiCanvasesCreateRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
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.
Sourcepub fn opt_title(self, value: Option<String>) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
Returns self with title set to the given Option.
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 channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to Some(value).
Sourcepub fn reset_channel_id(&mut self) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
Sets channel_id to None.
Sourcepub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel_id to the given Option.
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 Some(value).
Sourcepub fn without_channel_id(self) -> Self
pub fn without_channel_id(self) -> Self
Returns self with channel_id set to None.
Sourcepub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
Returns self with channel_id set to the given Option.