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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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