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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackApiChatUnfurlMapItemV2) -> bool
fn ne(&self, other: &SlackApiChatUnfurlMapItemV2) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more