pub struct ImageBlock {
pub image_url: String,
pub alt_text: String,
pub title: Option<TextBlockObject>,
pub block_id: Option<String>,
}Expand description
A simple image block, designed to make those cat photos really pop.
See: https://api.slack.com/reference/block-kit/blocks#image
Fields§
§image_url: String§alt_text: String§title: Option<TextBlockObject>§block_id: Option<String>Implementations§
Source§impl ImageBlock
impl ImageBlock
pub fn builder(image_url: String, alt_text: String) -> ImageBlockBuilder
Trait Implementations§
Source§impl Debug for ImageBlock
impl Debug for ImageBlock
Source§impl Default for ImageBlock
impl Default for ImageBlock
Source§fn default() -> ImageBlock
fn default() -> ImageBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageBlock
impl<'de> Deserialize<'de> for ImageBlock
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 PartialEq for ImageBlock
impl PartialEq for ImageBlock
Source§impl Serialize for ImageBlock
impl Serialize for ImageBlock
impl StructuralPartialEq for ImageBlock
Auto Trait Implementations§
impl Freeze for ImageBlock
impl RefUnwindSafe for ImageBlock
impl Send for ImageBlock
impl Sync for ImageBlock
impl Unpin for ImageBlock
impl UnwindSafe for ImageBlock
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