Struct slack_morphism::SlackMessageAttachment
source · [−]pub struct SlackMessageAttachment {
pub id: Option<i64>,
pub color: Option<String>,
pub fallback: Option<String>,
pub title: Option<String>,
pub fields: Option<Vec<SlackMessageAttachmentFieldObject>>,
pub mrkdwn_in: Option<Vec<String>>,
}Fields
id: Option<i64>color: Option<String>fallback: Option<String>title: Option<String>fields: Option<Vec<SlackMessageAttachmentFieldObject>>mrkdwn_in: Option<Vec<String>>Implementations
sourceimpl SlackMessageAttachment
impl SlackMessageAttachment
pub fn new() -> Self
pub fn id(&mut self, value: i64) -> &mut Self
pub fn reset_id(&mut self) -> &mut Self
pub fn mopt_id(&mut self, value: Option<i64>) -> &mut Self
pub fn with_id(self, value: i64) -> Self
pub fn without_id(self) -> Self
pub fn opt_id(self, value: Option<i64>) -> Self
pub fn color(&mut self, value: String) -> &mut Self
pub fn reset_color(&mut self) -> &mut Self
pub fn mopt_color(&mut self, value: Option<String>) -> &mut Self
pub fn with_color(self, value: String) -> Self
pub fn without_color(self) -> Self
pub fn opt_color(self, value: Option<String>) -> Self
pub fn fallback(&mut self, value: String) -> &mut Self
pub fn reset_fallback(&mut self) -> &mut Self
pub fn mopt_fallback(&mut self, value: Option<String>) -> &mut Self
pub fn with_fallback(self, value: String) -> Self
pub fn without_fallback(self) -> Self
pub fn opt_fallback(self, value: Option<String>) -> Self
pub fn title(&mut self, value: String) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn with_title(self, value: String) -> Self
pub fn without_title(self) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
pub fn fields(
&mut self,
value: Vec<SlackMessageAttachmentFieldObject>
) -> &mut Self
pub fn reset_fields(&mut self) -> &mut Self
pub fn mopt_fields(
&mut self,
value: Option<Vec<SlackMessageAttachmentFieldObject>>
) -> &mut Self
pub fn with_fields(self, value: Vec<SlackMessageAttachmentFieldObject>) -> Self
pub fn without_fields(self) -> Self
pub fn opt_fields(
self,
value: Option<Vec<SlackMessageAttachmentFieldObject>>
) -> Self
pub fn mrkdwn_in(&mut self, value: Vec<String>) -> &mut Self
pub fn reset_mrkdwn_in(&mut self) -> &mut Self
pub fn mopt_mrkdwn_in(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn with_mrkdwn_in(self, value: Vec<String>) -> Self
pub fn without_mrkdwn_in(self) -> Self
pub fn opt_mrkdwn_in(self, value: Option<Vec<String>>) -> Self
Trait Implementations
sourceimpl Clone for SlackMessageAttachment
impl Clone for SlackMessageAttachment
sourcefn clone(&self) -> SlackMessageAttachment
fn clone(&self) -> SlackMessageAttachment
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 SlackMessageAttachment
impl Debug for SlackMessageAttachment
sourceimpl<'de> Deserialize<'de> for SlackMessageAttachment
impl<'de> Deserialize<'de> for SlackMessageAttachment
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<SlackMessageAttachmentInit> for SlackMessageAttachment
impl From<SlackMessageAttachmentInit> for SlackMessageAttachment
sourcefn from(value: SlackMessageAttachmentInit) -> Self
fn from(value: SlackMessageAttachmentInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackMessageAttachment> for SlackMessageAttachment
impl PartialEq<SlackMessageAttachment> for SlackMessageAttachment
sourcefn eq(&self, other: &SlackMessageAttachment) -> bool
fn eq(&self, other: &SlackMessageAttachment) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SlackMessageAttachment) -> bool
fn ne(&self, other: &SlackMessageAttachment) -> bool
This method tests for !=.
sourceimpl Serialize for SlackMessageAttachment
impl Serialize for SlackMessageAttachment
impl StructuralPartialEq for SlackMessageAttachment
Auto Trait Implementations
impl RefUnwindSafe for SlackMessageAttachment
impl Send for SlackMessageAttachment
impl Sync for SlackMessageAttachment
impl Unpin for SlackMessageAttachment
impl UnwindSafe for SlackMessageAttachment
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