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