pub struct SlackImageBlockInit {
pub image_url_or_file: SlackImageUrlOrFile,
pub alt_text: String,
}Expand description
Required fields of SlackImageBlock; convert with SlackImageBlock::from or .into().
Fields§
§image_url_or_file: SlackImageUrlOrFileValue for the image_url_or_file field of SlackImageBlock.
alt_text: StringValue for the alt_text field of SlackImageBlock.
Trait Implementations§
Source§impl From<SlackImageBlockInit> for SlackImageBlock
impl From<SlackImageBlockInit> for SlackImageBlock
Source§fn from(value: SlackImageBlockInit) -> Self
fn from(value: SlackImageBlockInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SlackImageBlockInit
impl RefUnwindSafe for SlackImageBlockInit
impl Send for SlackImageBlockInit
impl Sync for SlackImageBlockInit
impl Unpin for SlackImageBlockInit
impl UnsafeUnpin for SlackImageBlockInit
impl UnwindSafe for SlackImageBlockInit
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