pub struct SlackApiChatUnfurlMapItemV2 {
pub blocks: Vec<SlackBlock>,
pub preview: Option<SlackApiChatUnfurlPreview>,
}Fields§
§blocks: Vec<SlackBlock>§preview: Option<SlackApiChatUnfurlPreview>Implementations§
Source§impl SlackApiChatUnfurlMapItemV2
impl SlackApiChatUnfurlMapItemV2
Sourcepub fn new(blocks: Vec<SlackBlock>) -> Self
pub fn new(blocks: Vec<SlackBlock>) -> Self
Creates a new SlackApiChatUnfurlMapItemV2 from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
Sets blocks to value.
Sourcepub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
Returns self with blocks set to value.
Sourcepub fn preview(&mut self, value: SlackApiChatUnfurlPreview) -> &mut Self
pub fn preview(&mut self, value: SlackApiChatUnfurlPreview) -> &mut Self
Sets preview to Some(value).
Sourcepub fn reset_preview(&mut self) -> &mut Self
pub fn reset_preview(&mut self) -> &mut Self
Sets preview to None.
Sourcepub fn mopt_preview(
&mut self,
value: Option<SlackApiChatUnfurlPreview>,
) -> &mut Self
pub fn mopt_preview( &mut self, value: Option<SlackApiChatUnfurlPreview>, ) -> &mut Self
Sets preview to the given Option.
Sourcepub fn with_preview(self, value: SlackApiChatUnfurlPreview) -> Self
pub fn with_preview(self, value: SlackApiChatUnfurlPreview) -> Self
Returns self with preview set to Some(value).
Sourcepub fn without_preview(self) -> Self
pub fn without_preview(self) -> Self
Returns self with preview set to None.
Sourcepub fn opt_preview(self, value: Option<SlackApiChatUnfurlPreview>) -> Self
pub fn opt_preview(self, value: Option<SlackApiChatUnfurlPreview>) -> Self
Returns self with preview set to the given Option.
Trait Implementations§
Source§impl Clone for SlackApiChatUnfurlMapItemV2
impl Clone for SlackApiChatUnfurlMapItemV2
Source§impl Debug for SlackApiChatUnfurlMapItemV2
impl Debug for SlackApiChatUnfurlMapItemV2
Source§impl<'de> Deserialize<'de> for SlackApiChatUnfurlMapItemV2
impl<'de> Deserialize<'de> for SlackApiChatUnfurlMapItemV2
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<SlackApiChatUnfurlMapItemV2Init> for SlackApiChatUnfurlMapItemV2
impl From<SlackApiChatUnfurlMapItemV2Init> for SlackApiChatUnfurlMapItemV2
Source§fn from(value: SlackApiChatUnfurlMapItemV2Init) -> Self
fn from(value: SlackApiChatUnfurlMapItemV2Init) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiChatUnfurlMapItemV2
Auto Trait Implementations§
impl Freeze for SlackApiChatUnfurlMapItemV2
impl RefUnwindSafe for SlackApiChatUnfurlMapItemV2
impl Send for SlackApiChatUnfurlMapItemV2
impl Sync for SlackApiChatUnfurlMapItemV2
impl Unpin for SlackApiChatUnfurlMapItemV2
impl UnsafeUnpin for SlackApiChatUnfurlMapItemV2
impl UnwindSafe for SlackApiChatUnfurlMapItemV2
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