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: Url
Implementations§
Source§impl SlackVideoBlock
impl SlackVideoBlock
pub fn new( alt_text: String, title: SlackBlockPlainTextOnly, thumbnail_url: Url, video_url: Url, ) -> Self
pub fn alt_text(&mut self, value: String) -> &mut Self
pub fn with_alt_text(self, value: String) -> Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn without_block_id(self) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn description(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn reset_description(&mut self) -> &mut Self
pub fn mopt_description( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
pub fn with_description(self, value: SlackBlockPlainTextOnly) -> Self
pub fn without_description(self) -> Self
pub fn opt_description(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn provider_icon_url(&mut self, value: Url) -> &mut Self
pub fn reset_provider_icon_url(&mut self) -> &mut Self
pub fn mopt_provider_icon_url(&mut self, value: Option<Url>) -> &mut Self
pub fn with_provider_icon_url(self, value: Url) -> Self
pub fn without_provider_icon_url(self) -> Self
pub fn opt_provider_icon_url(self, value: Option<Url>) -> Self
pub fn provider_name(&mut self, value: String) -> &mut Self
pub fn reset_provider_name(&mut self) -> &mut Self
pub fn mopt_provider_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_provider_name(self, value: String) -> Self
pub fn without_provider_name(self) -> Self
pub fn opt_provider_name(self, value: Option<String>) -> Self
pub fn title(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn with_title(self, value: SlackBlockPlainTextOnly) -> Self
pub fn title_url(&mut self, value: Url) -> &mut Self
pub fn reset_title_url(&mut self) -> &mut Self
pub fn mopt_title_url(&mut self, value: Option<Url>) -> &mut Self
pub fn with_title_url(self, value: Url) -> Self
pub fn without_title_url(self) -> Self
pub fn opt_title_url(self, value: Option<Url>) -> Self
pub fn thumbnail_url(&mut self, value: Url) -> &mut Self
pub fn with_thumbnail_url(self, value: Url) -> Self
pub fn video_url(&mut self, value: Url) -> &mut Self
pub fn with_video_url(self, value: Url) -> Self
Trait Implementations§
Source§impl Clone for SlackVideoBlock
impl Clone for SlackVideoBlock
Source§fn clone(&self) -> SlackVideoBlock
fn clone(&self) -> SlackVideoBlock
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SlackVideoBlock
impl Debug for SlackVideoBlock
Source§impl<'de> Deserialize<'de> for SlackVideoBlock
impl<'de> Deserialize<'de> for SlackVideoBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackVideoBlock> for SlackBlock
impl From<SlackVideoBlock> for SlackBlock
Source§fn from(block: SlackVideoBlock) -> Self
fn from(block: SlackVideoBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackVideoBlockInit> for SlackVideoBlock
impl From<SlackVideoBlockInit> for SlackVideoBlock
Source§fn from(value: SlackVideoBlockInit) -> Self
fn from(value: SlackVideoBlockInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackVideoBlock
impl PartialEq for SlackVideoBlock
Source§impl Serialize for SlackVideoBlock
impl Serialize for SlackVideoBlock
impl StructuralPartialEq for SlackVideoBlock
Auto Trait Implementations§
impl Freeze for SlackVideoBlock
impl RefUnwindSafe for SlackVideoBlock
impl Send for SlackVideoBlock
impl Sync for SlackVideoBlock
impl Unpin for SlackVideoBlock
impl UnwindSafe for SlackVideoBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more