Struct slack_morphism::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 edited: Option<SlackMessageEdited>,
pub deleted_ts: Option<SlackTs>,
}Fields
origin: SlackMessageOrigincontent: Option<SlackMessageContent>sender: SlackMessageSendersubtype: Option<SlackMessageEventType>edited: Option<SlackMessageEdited>deleted_ts: Option<SlackTs>Implementations
sourceimpl 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 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
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
sourceimpl Clone for SlackMessageEvent
impl Clone for SlackMessageEvent
sourcefn clone(&self) -> SlackMessageEvent
fn clone(&self) -> SlackMessageEvent
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 more
sourceimpl Debug for SlackMessageEvent
impl Debug for SlackMessageEvent
sourceimpl<'de> Deserialize<'de> for SlackMessageEvent
impl<'de> Deserialize<'de> for SlackMessageEvent
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<SlackMessageEventInit> for SlackMessageEvent
impl From<SlackMessageEventInit> for SlackMessageEvent
sourcefn from(value: SlackMessageEventInit) -> Self
fn from(value: SlackMessageEventInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackMessageEvent> for SlackMessageEvent
impl PartialEq<SlackMessageEvent> for SlackMessageEvent
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &SlackMessageEvent) -> bool
fn ne(&self, other: &SlackMessageEvent) -> bool
This method tests for !=.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more