pub struct SlackVideoBlock {
pub alt_text: String,
pub author_name: Option<String>,
pub block_id: Option<SlackBlockId>,
pub description: Option<SlackBlockPlainTextOnly>,
pub provider_icon_url: Option<Url>,
pub provider_name: Option<String>,
pub title: SlackBlockPlainTextOnly,
pub title_url: Option<Url>,
pub thumbnail_url: Url,
pub video_url: Url,
}Expand description
- https://api.slack.com/reference/block-kit/blocks#video
Fields§
§alt_text: String§block_id: Option<SlackBlockId>§description: Option<SlackBlockPlainTextOnly>§provider_icon_url: Option<Url>§provider_name: Option<String>§title: SlackBlockPlainTextOnly§title_url: Option<Url>§thumbnail_url: Url§video_url: UrlImplementations§
Source§impl SlackVideoBlock
impl SlackVideoBlock
Sourcepub fn new(
alt_text: String,
title: SlackBlockPlainTextOnly,
thumbnail_url: Url,
video_url: Url,
) -> Self
pub fn new( alt_text: String, title: SlackBlockPlainTextOnly, thumbnail_url: Url, video_url: Url, ) -> Self
Creates a new SlackVideoBlock from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_alt_text(self, value: String) -> Self
pub fn with_alt_text(self, value: String) -> Self
Returns self with alt_text set to value.
Sets author_name to Some(value).
Sets author_name to None.
Sets author_name to the given Option.
Returns self with author_name set to Some(value).
Returns self with author_name set to None.
Returns self with author_name set to the given Option.
Sourcepub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
Sets block_id to Some(value).
Sourcepub fn reset_block_id(&mut self) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
Sets block_id to None.
Sourcepub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
Sets block_id to the given Option.
Sourcepub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
Returns self with block_id set to Some(value).
Sourcepub fn without_block_id(self) -> Self
pub fn without_block_id(self) -> Self
Returns self with block_id set to None.
Sourcepub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
Returns self with block_id set to the given Option.
Sourcepub fn description(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn description(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets description to Some(value).
Sourcepub fn reset_description(&mut self) -> &mut Self
pub fn reset_description(&mut self) -> &mut Self
Sets description to None.
Sourcepub fn mopt_description(
&mut self,
value: Option<SlackBlockPlainTextOnly>,
) -> &mut Self
pub fn mopt_description( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
Sets description to the given Option.
Sourcepub fn with_description(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_description(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with description set to Some(value).
Sourcepub fn without_description(self) -> Self
pub fn without_description(self) -> Self
Returns self with description set to None.
Sourcepub fn opt_description(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn opt_description(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Returns self with description set to the given Option.
Sourcepub fn provider_icon_url(&mut self, value: Url) -> &mut Self
pub fn provider_icon_url(&mut self, value: Url) -> &mut Self
Sets provider_icon_url to Some(value).
Sourcepub fn reset_provider_icon_url(&mut self) -> &mut Self
pub fn reset_provider_icon_url(&mut self) -> &mut Self
Sets provider_icon_url to None.
Sourcepub fn mopt_provider_icon_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_provider_icon_url(&mut self, value: Option<Url>) -> &mut Self
Sets provider_icon_url to the given Option.
Sourcepub fn with_provider_icon_url(self, value: Url) -> Self
pub fn with_provider_icon_url(self, value: Url) -> Self
Returns self with provider_icon_url set to Some(value).
Sourcepub fn without_provider_icon_url(self) -> Self
pub fn without_provider_icon_url(self) -> Self
Returns self with provider_icon_url set to None.
Sourcepub fn opt_provider_icon_url(self, value: Option<Url>) -> Self
pub fn opt_provider_icon_url(self, value: Option<Url>) -> Self
Returns self with provider_icon_url set to the given Option.
Sourcepub fn provider_name(&mut self, value: String) -> &mut Self
pub fn provider_name(&mut self, value: String) -> &mut Self
Sets provider_name to Some(value).
Sourcepub fn reset_provider_name(&mut self) -> &mut Self
pub fn reset_provider_name(&mut self) -> &mut Self
Sets provider_name to None.
Sourcepub fn mopt_provider_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_provider_name(&mut self, value: Option<String>) -> &mut Self
Sets provider_name to the given Option.
Sourcepub fn with_provider_name(self, value: String) -> Self
pub fn with_provider_name(self, value: String) -> Self
Returns self with provider_name set to Some(value).
Sourcepub fn without_provider_name(self) -> Self
pub fn without_provider_name(self) -> Self
Returns self with provider_name set to None.
Sourcepub fn opt_provider_name(self, value: Option<String>) -> Self
pub fn opt_provider_name(self, value: Option<String>) -> Self
Returns self with provider_name set to the given Option.
Sourcepub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets title to value.
Sourcepub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with title set to value.
Sourcepub fn reset_title_url(&mut self) -> &mut Self
pub fn reset_title_url(&mut self) -> &mut Self
Sets title_url to None.
Sourcepub fn mopt_title_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_title_url(&mut self, value: Option<Url>) -> &mut Self
Sets title_url to the given Option.
Sourcepub fn with_title_url(self, value: Url) -> Self
pub fn with_title_url(self, value: Url) -> Self
Returns self with title_url set to Some(value).
Sourcepub fn without_title_url(self) -> Self
pub fn without_title_url(self) -> Self
Returns self with title_url set to None.
Sourcepub fn opt_title_url(self, value: Option<Url>) -> Self
pub fn opt_title_url(self, value: Option<Url>) -> Self
Returns self with title_url set to the given Option.
Sourcepub fn thumbnail_url(&mut self, value: Url) -> &mut Self
pub fn thumbnail_url(&mut self, value: Url) -> &mut Self
Sets thumbnail_url to value.
Sourcepub fn with_thumbnail_url(self, value: Url) -> Self
pub fn with_thumbnail_url(self, value: Url) -> Self
Returns self with thumbnail_url set to value.
Sourcepub fn with_video_url(self, value: Url) -> Self
pub fn with_video_url(self, value: Url) -> Self
Returns self with video_url set to value.