Struct slack_morphism::prelude::SlackMessage
source · pub struct SlackMessage {
pub origin: SlackMessageOrigin,
pub content: SlackMessageContent,
pub sender: SlackMessageSender,
pub parent: SlackParentMessageParams,
}
Fields§
§origin: SlackMessageOrigin
§content: SlackMessageContent
§sender: SlackMessageSender
§parent: SlackParentMessageParams
Implementations§
source§impl SlackMessage
impl SlackMessage
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
Trait Implementations§
source§impl Clone for SlackMessage
impl Clone for SlackMessage
source§fn clone(&self) -> SlackMessage
fn clone(&self) -> SlackMessage
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 SlackMessage
impl Debug for SlackMessage
source§impl<'de> Deserialize<'de> for SlackMessage
impl<'de> Deserialize<'de> for SlackMessage
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<SlackMessageInit> for SlackMessage
impl From<SlackMessageInit> for SlackMessage
source§fn from(value: SlackMessageInit) -> Self
fn from(value: SlackMessageInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackMessage
impl PartialEq for SlackMessage
source§fn eq(&self, other: &SlackMessage) -> bool
fn eq(&self, other: &SlackMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackMessage
impl Serialize for SlackMessage
impl StructuralPartialEq for SlackMessage
Auto Trait Implementations§
impl RefUnwindSafe for SlackMessage
impl Send for SlackMessage
impl Sync for SlackMessage
impl Unpin for SlackMessage
impl UnwindSafe for SlackMessage
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