pub struct SlackHomeView {
pub blocks: Vec<SlackBlock>,
pub private_metadata: Option<String>,
pub callback_id: Option<SlackCallbackId>,
pub external_id: Option<String>,
}Fields§
§blocks: Vec<SlackBlock>§private_metadata: Option<String>§callback_id: Option<SlackCallbackId>§external_id: Option<String>Implementations§
Source§impl SlackHomeView
impl SlackHomeView
Sourcepub fn new(blocks: Vec<SlackBlock>) -> Self
pub fn new(blocks: Vec<SlackBlock>) -> Self
Creates a new SlackHomeView from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
Sets blocks to value.
Sourcepub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
Returns self with blocks set to value.
Sourcepub fn private_metadata(&mut self, value: String) -> &mut Self
pub fn private_metadata(&mut self, value: String) -> &mut Self
Sets private_metadata to Some(value).
Sourcepub fn reset_private_metadata(&mut self) -> &mut Self
pub fn reset_private_metadata(&mut self) -> &mut Self
Sets private_metadata to None.
Sourcepub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_private_metadata(&mut self, value: Option<String>) -> &mut Self
Sets private_metadata to the given Option.
Sourcepub fn with_private_metadata(self, value: String) -> Self
pub fn with_private_metadata(self, value: String) -> Self
Returns self with private_metadata set to Some(value).
Sourcepub fn without_private_metadata(self) -> Self
pub fn without_private_metadata(self) -> Self
Returns self with private_metadata set to None.
Sourcepub fn opt_private_metadata(self, value: Option<String>) -> Self
pub fn opt_private_metadata(self, value: Option<String>) -> Self
Returns self with private_metadata set to the given Option.
Sourcepub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
pub fn callback_id(&mut self, value: SlackCallbackId) -> &mut Self
Sets callback_id to Some(value).
Sourcepub fn reset_callback_id(&mut self) -> &mut Self
pub fn reset_callback_id(&mut self) -> &mut Self
Sets callback_id to None.
Sourcepub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
pub fn mopt_callback_id(&mut self, value: Option<SlackCallbackId>) -> &mut Self
Sets callback_id to the given Option.
Sourcepub fn with_callback_id(self, value: SlackCallbackId) -> Self
pub fn with_callback_id(self, value: SlackCallbackId) -> Self
Returns self with callback_id set to Some(value).
Sourcepub fn without_callback_id(self) -> Self
pub fn without_callback_id(self) -> Self
Returns self with callback_id set to None.
Sourcepub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
pub fn opt_callback_id(self, value: Option<SlackCallbackId>) -> Self
Returns self with callback_id set to the given Option.
Sourcepub fn external_id(&mut self, value: String) -> &mut Self
pub fn external_id(&mut self, value: String) -> &mut Self
Sets external_id to Some(value).
Sourcepub fn reset_external_id(&mut self) -> &mut Self
pub fn reset_external_id(&mut self) -> &mut Self
Sets external_id to None.
Sourcepub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_external_id(&mut self, value: Option<String>) -> &mut Self
Sets external_id to the given Option.
Sourcepub fn with_external_id(self, value: String) -> Self
pub fn with_external_id(self, value: String) -> Self
Returns self with external_id set to Some(value).
Sourcepub fn without_external_id(self) -> Self
pub fn without_external_id(self) -> Self
Returns self with external_id set to None.
Sourcepub fn opt_external_id(self, value: Option<String>) -> Self
pub fn opt_external_id(self, value: Option<String>) -> Self
Returns self with external_id set to the given Option.