pub struct Image<'a> { /* private fields */ }Expand description
§Image Element
An element to insert an image as part of a larger block of content.
If you want a block with only an image in it, you’re looking for the image block 🔗.
Works in blocks 🔗: Section, Context
Implementations§
Source§impl<'a> Image<'a>
impl<'a> Image<'a>
Sourcepub fn builder() -> ImageBuilderInit<'a>
pub fn builder() -> ImageBuilderInit<'a>
Sourcepub fn validate(&self) -> Result<(), ValidationErrors>
Available on crate feature validation only.
pub fn validate(&self) -> Result<(), ValidationErrors>
validation only.Validate that this image element agrees with Slack’s model requirements.
No rules are specified in the Slack docs at the time of writing so this will always succeed.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Image<'a>
impl<'de, 'a> Deserialize<'de> for Image<'a>
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<'a> From<Image<'a>> for BlockElement<'a>
impl<'a> From<Image<'a>> for BlockElement<'a>
Source§impl<'a> From<Image<'a>> for ImageOrText<'a>
impl<'a> From<Image<'a>> for ImageOrText<'a>
impl<'a> StructuralPartialEq for Image<'a>
Auto Trait Implementations§
impl<'a> Freeze for Image<'a>
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> Send for Image<'a>
impl<'a> Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> UnwindSafe for Image<'a>
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