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§
source§impl 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§
source§impl Clone for SlackMessageAttachment
impl Clone for SlackMessageAttachment
source§fn clone(&self) -> SlackMessageAttachment
fn clone(&self) -> SlackMessageAttachment
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 SlackMessageAttachment
impl Debug for SlackMessageAttachment
source§impl<'de> Deserialize<'de> for SlackMessageAttachment
impl<'de> Deserialize<'de> for SlackMessageAttachment
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<SlackMessageAttachmentInit> for SlackMessageAttachment
impl From<SlackMessageAttachmentInit> for SlackMessageAttachment
source§fn from(value: SlackMessageAttachmentInit) -> Self
fn from(value: SlackMessageAttachmentInit) -> Self
Converts to this type from the input type.