pub struct SlackApiChatUnfurlPreview {
pub title: SlackBlockText,
pub icon_url: Option<Url>,
}Fields§
§title: SlackBlockText§icon_url: Option<Url>Implementations§
Source§impl SlackApiChatUnfurlPreview
impl SlackApiChatUnfurlPreview
Sourcepub fn new(title: SlackBlockText) -> Self
pub fn new(title: SlackBlockText) -> Self
Creates a new SlackApiChatUnfurlPreview from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn title(&mut self, value: SlackBlockText) -> &mut Self
pub fn title(&mut self, value: SlackBlockText) -> &mut Self
Sets title to value.
Sourcepub fn with_title(self, value: SlackBlockText) -> Self
pub fn with_title(self, value: SlackBlockText) -> Self
Returns self with title set to value.
Sourcepub fn reset_icon_url(&mut self) -> &mut Self
pub fn reset_icon_url(&mut self) -> &mut Self
Sets icon_url to None.
Sourcepub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_icon_url(&mut self, value: Option<Url>) -> &mut Self
Sets icon_url to the given Option.
Sourcepub fn with_icon_url(self, value: Url) -> Self
pub fn with_icon_url(self, value: Url) -> Self
Returns self with icon_url set to Some(value).
Sourcepub fn without_icon_url(self) -> Self
pub fn without_icon_url(self) -> Self
Returns self with icon_url set to None.
Sourcepub fn opt_icon_url(self, value: Option<Url>) -> Self
pub fn opt_icon_url(self, value: Option<Url>) -> Self
Returns self with icon_url set to the given Option.
Trait Implementations§
Source§impl Clone for SlackApiChatUnfurlPreview
impl Clone for SlackApiChatUnfurlPreview
Source§impl Debug for SlackApiChatUnfurlPreview
impl Debug for SlackApiChatUnfurlPreview
Source§impl<'de> Deserialize<'de> for SlackApiChatUnfurlPreview
impl<'de> Deserialize<'de> for SlackApiChatUnfurlPreview
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<SlackApiChatUnfurlPreviewInit> for SlackApiChatUnfurlPreview
impl From<SlackApiChatUnfurlPreviewInit> for SlackApiChatUnfurlPreview
Source§fn from(value: SlackApiChatUnfurlPreviewInit) -> Self
fn from(value: SlackApiChatUnfurlPreviewInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiChatUnfurlPreview
Auto Trait Implementations§
impl Freeze for SlackApiChatUnfurlPreview
impl RefUnwindSafe for SlackApiChatUnfurlPreview
impl Send for SlackApiChatUnfurlPreview
impl Sync for SlackApiChatUnfurlPreview
impl Unpin for SlackApiChatUnfurlPreview
impl UnsafeUnpin for SlackApiChatUnfurlPreview
impl UnwindSafe for SlackApiChatUnfurlPreview
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