Struct slack_morphism::api::SlackApiChatUnfurlMapItemV2
source · pub struct SlackApiChatUnfurlMapItemV2 {
pub blocks: Vec<SlackBlock>,
pub preview: Option<SlackApiChatUnfurlPreview>,
}
Fields§
§blocks: Vec<SlackBlock>
§preview: Option<SlackApiChatUnfurlPreview>
Implementations§
source§impl SlackApiChatUnfurlMapItemV2
impl SlackApiChatUnfurlMapItemV2
pub fn new(blocks: Vec<SlackBlock>) -> Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn preview(&mut self, value: SlackApiChatUnfurlPreview) -> &mut Self
pub fn reset_preview(&mut self) -> &mut Self
pub fn mopt_preview( &mut self, value: Option<SlackApiChatUnfurlPreview> ) -> &mut Self
pub fn with_preview(self, value: SlackApiChatUnfurlPreview) -> Self
pub fn without_preview(self) -> Self
pub fn opt_preview(self, value: Option<SlackApiChatUnfurlPreview>) -> Self
Trait Implementations§
source§impl Clone for SlackApiChatUnfurlMapItemV2
impl Clone for SlackApiChatUnfurlMapItemV2
source§fn clone(&self) -> SlackApiChatUnfurlMapItemV2
fn clone(&self) -> SlackApiChatUnfurlMapItemV2
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 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.
source§impl PartialEq for SlackApiChatUnfurlMapItemV2
impl PartialEq for SlackApiChatUnfurlMapItemV2
source§fn eq(&self, other: &SlackApiChatUnfurlMapItemV2) -> bool
fn eq(&self, other: &SlackApiChatUnfurlMapItemV2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackApiChatUnfurlMapItemV2
Auto Trait Implementations§
impl RefUnwindSafe for SlackApiChatUnfurlMapItemV2
impl Send for SlackApiChatUnfurlMapItemV2
impl Sync for SlackApiChatUnfurlMapItemV2
impl Unpin 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