pub struct SlackBlockImageElement {
pub image_url_or_file: SlackImageUrlOrFile,
pub alt_text: String,
}Fields§
§image_url_or_file: SlackImageUrlOrFile§alt_text: StringImplementations§
Source§impl SlackBlockImageElement
impl SlackBlockImageElement
Sourcepub fn new(image_url_or_file: SlackImageUrlOrFile, alt_text: String) -> Self
pub fn new(image_url_or_file: SlackImageUrlOrFile, alt_text: String) -> Self
Creates a new SlackBlockImageElement from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn image_url_or_file(&mut self, value: SlackImageUrlOrFile) -> &mut Self
pub fn image_url_or_file(&mut self, value: SlackImageUrlOrFile) -> &mut Self
Sets image_url_or_file to value.
Sourcepub fn with_image_url_or_file(self, value: SlackImageUrlOrFile) -> Self
pub fn with_image_url_or_file(self, value: SlackImageUrlOrFile) -> Self
Returns self with image_url_or_file set to value.
Sourcepub fn with_alt_text(self, value: String) -> Self
pub fn with_alt_text(self, value: String) -> Self
Returns self with alt_text set to value.
Trait Implementations§
Source§impl Clone for SlackBlockImageElement
impl Clone for SlackBlockImageElement
Source§impl Debug for SlackBlockImageElement
impl Debug for SlackBlockImageElement
Source§impl<'de> Deserialize<'de> for SlackBlockImageElement
impl<'de> Deserialize<'de> for SlackBlockImageElement
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 From<SlackBlockImageElement> for SlackSectionBlockElement
impl From<SlackBlockImageElement> for SlackSectionBlockElement
Source§fn from(element: SlackBlockImageElement) -> Self
fn from(element: SlackBlockImageElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockImageElement> for SlackContextBlockElement
impl From<SlackBlockImageElement> for SlackContextBlockElement
Source§fn from(element: SlackBlockImageElement) -> Self
fn from(element: SlackBlockImageElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockImageElement> for SlackCardImageElement
impl From<SlackBlockImageElement> for SlackCardImageElement
Source§fn from(element: SlackBlockImageElement) -> Self
fn from(element: SlackBlockImageElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockImageElementInit> for SlackBlockImageElement
impl From<SlackBlockImageElementInit> for SlackBlockImageElement
Source§fn from(value: SlackBlockImageElementInit) -> Self
fn from(value: SlackBlockImageElementInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackBlockImageElement
impl PartialEq for SlackBlockImageElement
Source§impl Serialize for SlackBlockImageElement
impl Serialize for SlackBlockImageElement
impl StructuralPartialEq for SlackBlockImageElement
Auto Trait Implementations§
impl Freeze for SlackBlockImageElement
impl RefUnwindSafe for SlackBlockImageElement
impl Send for SlackBlockImageElement
impl Sync for SlackBlockImageElement
impl Unpin for SlackBlockImageElement
impl UnsafeUnpin for SlackBlockImageElement
impl UnwindSafe for SlackBlockImageElement
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