pub struct VideoBlock {
pub alt_text: String,
pub author_name: Option<String>,
pub block_id: Option<String>,
pub description: Option<TextObject>,
pub provider_icon_url: Option<String>,
pub provider_name: Option<String>,
pub title: TextObject,
pub title_url: Option<String>,
pub thumbnail_url: String,
pub video_url: String,
/* private fields */
}Expand description
An embedded video. https://docs.slack.dev/reference/block-kit/blocks/video-block
Fields§
§alt_text: String§block_id: Option<String>§description: Option<TextObject>§provider_icon_url: Option<String>§provider_name: Option<String>§title: TextObject§title_url: Option<String>§thumbnail_url: String§video_url: StringImplementations§
Source§impl VideoBlock
impl VideoBlock
pub fn new( alt_text: impl Into<String>, title: impl Into<TextObject>, thumbnail_url: impl Into<String>, video_url: impl Into<String>, ) -> Self
pub fn block_id(self, block_id: impl Into<String>) -> Self
pub fn description(self, description: impl Into<TextObject>) -> Self
pub fn provider_icon_url(self, provider_icon_url: impl Into<String>) -> Self
pub fn provider_name(self, provider_name: impl Into<String>) -> Self
pub fn title_url(self, title_url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for VideoBlock
impl Clone for VideoBlock
Source§impl Debug for VideoBlock
impl Debug for VideoBlock
Source§impl<'de> Deserialize<'de> for VideoBlock
impl<'de> Deserialize<'de> for VideoBlock
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<VideoBlock> for Block
impl From<VideoBlock> for Block
Source§fn from(value: VideoBlock) -> Self
fn from(value: VideoBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VideoBlock
impl PartialEq for VideoBlock
Source§impl Serialize for VideoBlock
impl Serialize for VideoBlock
impl StructuralPartialEq for VideoBlock
Auto Trait Implementations§
impl Freeze for VideoBlock
impl RefUnwindSafe for VideoBlock
impl Send for VideoBlock
impl Sync for VideoBlock
impl Unpin for VideoBlock
impl UnsafeUnpin for VideoBlock
impl UnwindSafe for VideoBlock
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