Struct sfr_types::ImageBlock
source · pub struct ImageBlock {
pub alt_text: String,
pub image_url: Option<Url>,
pub title: Option<TextObject>,
pub block_id: Option<BlockId>,
}Expand description
Fields§
§alt_text: StringA plain-text summary of the image.
image_url: Option<Url>The URL for a publicly hosted image.
title: Option<TextObject>An optional title for the image in the form of a text object that can only be of type: plain_text.
block_id: Option<BlockId>A unique identifier for a block.
Trait Implementations§
source§impl Clone for ImageBlock
impl Clone for ImageBlock
source§fn clone(&self) -> ImageBlock
fn clone(&self) -> ImageBlock
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 ImageBlock
impl Debug 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)