Struct slack_blocks::elems::image::Image [−][src]
pub struct Image<'a> { /* fields omitted */ }
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
impl<'a> Image<'a>
[src]
impl<'a> Image<'a>
[src]pub fn builder() -> ImageBuilderInit<'a>
[src]
pub fn builder() -> ImageBuilderInit<'a>
[src]pub fn validate(&self) -> Result<(), ValidationErrors>
[src]
pub fn validate(&self) -> Result<(), ValidationErrors>
[src]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
impl<'de, 'a> Deserialize<'de> for Image<'a>
[src]
impl<'de, 'a> Deserialize<'de> for Image<'a>
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<'a> From<Image<'a>> for BlockElement<'a>
[src]
impl<'a> From<Image<'a>> for BlockElement<'a>
[src]impl<'a> StructuralPartialEq for Image<'a>
[src]
Auto Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,