Struct slack_morphism::prelude::SlackMessageContent
source · [−]pub struct SlackMessageContent {
pub text: Option<String>,
pub blocks: Option<Vec<SlackBlock, Global>>,
pub attachments: Option<Vec<SlackMessageAttachment, Global>>,
}Fields
text: Option<String>blocks: Option<Vec<SlackBlock, Global>>attachments: Option<Vec<SlackMessageAttachment, Global>>Implementations
sourceimpl SlackMessageContent
impl SlackMessageContent
pub fn new() -> SlackMessageContent
pub fn text(&mut self, value: String) -> &mut SlackMessageContent
pub fn reset_text(&mut self) -> &mut SlackMessageContent
pub fn mopt_text(&mut self, value: Option<String>) -> &mut SlackMessageContent
pub fn with_text(self, value: String) -> SlackMessageContent
pub fn without_text(self) -> SlackMessageContent
pub fn opt_text(self, value: Option<String>) -> SlackMessageContent
pub fn blocks(
&mut self,
value: Vec<SlackBlock, Global>
) -> &mut SlackMessageContent
pub fn reset_blocks(&mut self) -> &mut SlackMessageContent
pub fn mopt_blocks(
&mut self,
value: Option<Vec<SlackBlock, Global>>
) -> &mut SlackMessageContent
pub fn with_blocks(self, value: Vec<SlackBlock, Global>) -> SlackMessageContent
pub fn without_blocks(self) -> SlackMessageContent
pub fn opt_blocks(
self,
value: Option<Vec<SlackBlock, Global>>
) -> SlackMessageContent
pub fn attachments(
&mut self,
value: Vec<SlackMessageAttachment, Global>
) -> &mut SlackMessageContent
pub fn reset_attachments(&mut self) -> &mut SlackMessageContent
pub fn mopt_attachments(
&mut self,
value: Option<Vec<SlackMessageAttachment, Global>>
) -> &mut SlackMessageContent
pub fn with_attachments(
self,
value: Vec<SlackMessageAttachment, Global>
) -> SlackMessageContent
pub fn without_attachments(self) -> SlackMessageContent
pub fn opt_attachments(
self,
value: Option<Vec<SlackMessageAttachment, Global>>
) -> SlackMessageContent
Trait Implementations
sourceimpl Clone for SlackMessageContent
impl Clone for SlackMessageContent
sourcefn clone(&self) -> SlackMessageContent
fn clone(&self) -> SlackMessageContent
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 SlackMessageContent
impl Debug for SlackMessageContent
sourceimpl<'de> Deserialize<'de> for SlackMessageContent
impl<'de> Deserialize<'de> for SlackMessageContent
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SlackMessageContent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackMessageContent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<SlackMessageContentInit> for SlackMessageContent
impl From<SlackMessageContentInit> for SlackMessageContent
sourcefn from(value: SlackMessageContentInit) -> SlackMessageContent
fn from(value: SlackMessageContentInit) -> SlackMessageContent
Performs the conversion.
sourceimpl PartialEq<SlackMessageContent> for SlackMessageContent
impl PartialEq<SlackMessageContent> for SlackMessageContent
sourcefn eq(&self, other: &SlackMessageContent) -> bool
fn eq(&self, other: &SlackMessageContent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackMessageContent) -> bool
fn ne(&self, other: &SlackMessageContent) -> bool
This method tests for !=.
sourceimpl Serialize for SlackMessageContent
impl Serialize for SlackMessageContent
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SlackMessageContent
Auto Trait Implementations
impl RefUnwindSafe for SlackMessageContent
impl Send for SlackMessageContent
impl Sync for SlackMessageContent
impl Unpin for SlackMessageContent
impl UnwindSafe for SlackMessageContent
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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