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
sourceimpl 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
sourceimpl Clone for SlackApiChatUnfurlMapItemV2
impl Clone for SlackApiChatUnfurlMapItemV2
sourcefn clone(&self) -> SlackApiChatUnfurlMapItemV2
fn clone(&self) -> SlackApiChatUnfurlMapItemV2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SlackApiChatUnfurlMapItemV2
impl Debug for SlackApiChatUnfurlMapItemV2
sourceimpl<'de> Deserialize<'de> for SlackApiChatUnfurlMapItemV2
impl<'de> Deserialize<'de> for SlackApiChatUnfurlMapItemV2
sourcefn 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
sourceimpl From<SlackApiChatUnfurlMapItemV2Init> for SlackApiChatUnfurlMapItemV2
impl From<SlackApiChatUnfurlMapItemV2Init> for SlackApiChatUnfurlMapItemV2
sourcefn from(value: SlackApiChatUnfurlMapItemV2Init) -> Self
fn from(value: SlackApiChatUnfurlMapItemV2Init) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackApiChatUnfurlMapItemV2> for SlackApiChatUnfurlMapItemV2
impl PartialEq<SlackApiChatUnfurlMapItemV2> for SlackApiChatUnfurlMapItemV2
sourcefn eq(&self, other: &SlackApiChatUnfurlMapItemV2) -> bool
fn eq(&self, other: &SlackApiChatUnfurlMapItemV2) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more