Struct slack_morphism::prelude::events::SlackMessageEvent
source · pub struct SlackMessageEvent {
pub origin: SlackMessageOrigin,
pub content: Option<SlackMessageContent>,
pub sender: SlackMessageSender,
pub subtype: Option<SlackMessageEventType>,
pub hidden: Option<bool>,
pub message: Option<SlackMessageEventEdited>,
pub deleted_ts: Option<SlackTs>,
}
Fields§
§origin: SlackMessageOrigin
§content: Option<SlackMessageContent>
§sender: SlackMessageSender
§subtype: Option<SlackMessageEventType>
§message: Option<SlackMessageEventEdited>
§deleted_ts: Option<SlackTs>
Implementations§
source§impl SlackMessageEvent
impl SlackMessageEvent
pub fn new(origin: SlackMessageOrigin, sender: SlackMessageSender) -> 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 reset_content(&mut self) -> &mut Self
pub fn mopt_content(&mut self, value: Option<SlackMessageContent>) -> &mut Self
pub fn with_content(self, value: SlackMessageContent) -> Self
pub fn without_content(self) -> Self
pub fn opt_content(self, value: Option<SlackMessageContent>) -> Self
pub fn sender(&mut self, value: SlackMessageSender) -> &mut Self
pub fn with_sender(self, value: SlackMessageSender) -> 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 message(&mut self, value: SlackMessageEventEdited) -> &mut Self
pub fn reset_message(&mut self) -> &mut Self
pub fn mopt_message( &mut self, value: Option<SlackMessageEventEdited> ) -> &mut Self
pub fn with_message(self, value: SlackMessageEventEdited) -> Self
pub fn without_message(self) -> Self
pub fn opt_message(self, value: Option<SlackMessageEventEdited>) -> Self
pub fn deleted_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_deleted_ts(&mut self) -> &mut Self
pub fn mopt_deleted_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_deleted_ts(self, value: SlackTs) -> Self
pub fn without_deleted_ts(self) -> Self
pub fn opt_deleted_ts(self, value: Option<SlackTs>) -> Self
Trait Implementations§
source§impl Clone for SlackMessageEvent
impl Clone for SlackMessageEvent
source§fn clone(&self) -> SlackMessageEvent
fn clone(&self) -> SlackMessageEvent
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 SlackMessageEvent
impl Debug for SlackMessageEvent
source§impl<'de> Deserialize<'de> for SlackMessageEvent
impl<'de> Deserialize<'de> for SlackMessageEvent
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<SlackMessageEventInit> for SlackMessageEvent
impl From<SlackMessageEventInit> for SlackMessageEvent
source§fn from(value: SlackMessageEventInit) -> Self
fn from(value: SlackMessageEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackMessageEvent
impl PartialEq for SlackMessageEvent
source§fn eq(&self, other: &SlackMessageEvent) -> bool
fn eq(&self, other: &SlackMessageEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackMessageEvent
impl Serialize for SlackMessageEvent
impl StructuralPartialEq for SlackMessageEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackMessageEvent
impl Send for SlackMessageEvent
impl Sync for SlackMessageEvent
impl Unpin for SlackMessageEvent
impl UnwindSafe for SlackMessageEvent
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