Struct slack_morphism::SlackHistoryMessage
source · pub struct SlackHistoryMessage {
pub origin: SlackMessageOrigin,
pub content: SlackMessageContent,
pub sender: SlackMessageSender,
pub parent: SlackParentMessageParams,
pub subtype: Option<SlackMessageEventType>,
pub edited: Option<SlackMessageEdited>,
}
Fields§
§origin: SlackMessageOrigin
§content: SlackMessageContent
§sender: SlackMessageSender
§parent: SlackParentMessageParams
§subtype: Option<SlackMessageEventType>
§edited: Option<SlackMessageEdited>
Implementations§
source§impl SlackHistoryMessage
impl SlackHistoryMessage
pub fn new( origin: SlackMessageOrigin, content: SlackMessageContent, sender: SlackMessageSender, parent: SlackParentMessageParams ) -> Self
pub fn origin(&mut self, value: SlackMessageOrigin) -> &mut Self
pub fn with_origin(self, value: SlackMessageOrigin) -> Self
pub fn content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn with_content(self, value: SlackMessageContent) -> Self
pub fn sender(&mut self, value: SlackMessageSender) -> &mut Self
pub fn with_sender(self, value: SlackMessageSender) -> Self
pub fn parent(&mut self, value: SlackParentMessageParams) -> &mut Self
pub fn with_parent(self, value: SlackParentMessageParams) -> Self
pub fn subtype(&mut self, value: SlackMessageEventType) -> &mut Self
pub fn reset_subtype(&mut self) -> &mut Self
pub fn mopt_subtype( &mut self, value: Option<SlackMessageEventType> ) -> &mut Self
pub fn with_subtype(self, value: SlackMessageEventType) -> Self
pub fn without_subtype(self) -> Self
pub fn opt_subtype(self, value: Option<SlackMessageEventType>) -> Self
pub fn edited(&mut self, value: SlackMessageEdited) -> &mut Self
pub fn reset_edited(&mut self) -> &mut Self
pub fn mopt_edited(&mut self, value: Option<SlackMessageEdited>) -> &mut Self
pub fn with_edited(self, value: SlackMessageEdited) -> Self
pub fn without_edited(self) -> Self
pub fn opt_edited(self, value: Option<SlackMessageEdited>) -> Self
Trait Implementations§
source§impl Clone for SlackHistoryMessage
impl Clone for SlackHistoryMessage
source§fn clone(&self) -> SlackHistoryMessage
fn clone(&self) -> SlackHistoryMessage
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 SlackHistoryMessage
impl Debug for SlackHistoryMessage
source§impl<'de> Deserialize<'de> for SlackHistoryMessage
impl<'de> Deserialize<'de> for SlackHistoryMessage
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<SlackHistoryMessageInit> for SlackHistoryMessage
impl From<SlackHistoryMessageInit> for SlackHistoryMessage
source§fn from(value: SlackHistoryMessageInit) -> Self
fn from(value: SlackHistoryMessageInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackHistoryMessage
impl PartialEq for SlackHistoryMessage
source§fn eq(&self, other: &SlackHistoryMessage) -> bool
fn eq(&self, other: &SlackHistoryMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackHistoryMessage
impl Serialize for SlackHistoryMessage
impl StructuralPartialEq for SlackHistoryMessage
Auto Trait Implementations§
impl RefUnwindSafe for SlackHistoryMessage
impl Send for SlackHistoryMessage
impl Sync for SlackHistoryMessage
impl Unpin for SlackHistoryMessage
impl UnwindSafe for SlackHistoryMessage
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