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>>,
pub text: Option<String>,
pub blocks: Option<Vec<SlackBlock>>,
}
Fields§
§id: Option<i64>
§color: Option<String>
§fallback: Option<String>
§title: Option<String>
§fields: Option<Vec<SlackMessageAttachmentFieldObject>>
§mrkdwn_in: Option<Vec<String>>
§text: Option<String>
§blocks: Option<Vec<SlackBlock>>
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
pub fn text(&mut self, value: String) -> &mut Self
pub fn reset_text(&mut self) -> &mut Self
pub fn mopt_text(&mut self, value: Option<String>) -> &mut Self
pub fn with_text(self, value: String) -> Self
pub fn without_text(self) -> Self
pub fn opt_text(self, value: Option<String>) -> Self
pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self
pub fn reset_blocks(&mut self) -> &mut Self
pub fn mopt_blocks(&mut self, value: Option<Vec<SlackBlock>>) -> &mut Self
pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self
pub fn without_blocks(self) -> Self
pub fn opt_blocks(self, value: Option<Vec<SlackBlock>>) -> 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.
Source§impl PartialEq for SlackMessageAttachment
impl PartialEq for SlackMessageAttachment
Source§impl Serialize for SlackMessageAttachment
impl Serialize for SlackMessageAttachment
impl StructuralPartialEq for SlackMessageAttachment
Auto Trait Implementations§
impl Freeze for SlackMessageAttachment
impl RefUnwindSafe for SlackMessageAttachment
impl Send for SlackMessageAttachment
impl Sync for SlackMessageAttachment
impl Unpin for SlackMessageAttachment
impl UnwindSafe for SlackMessageAttachment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)