pub struct SlackUpdatedMessage {
pub sender: SlackMessageSender,
pub content: SlackMessageContent,
pub edited: Option<SlackMessageEdited>,
}
Fields§
§sender: SlackMessageSender
§content: SlackMessageContent
§edited: Option<SlackMessageEdited>
Implementations§
Source§impl SlackUpdatedMessage
impl SlackUpdatedMessage
pub fn new(sender: SlackMessageSender, content: SlackMessageContent) -> Self
pub fn sender(&mut self, value: SlackMessageSender) -> &mut Self
pub fn with_sender(self, value: SlackMessageSender) -> Self
pub fn content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn with_content(self, value: SlackMessageContent) -> 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 SlackUpdatedMessage
impl Clone for SlackUpdatedMessage
Source§fn clone(&self) -> SlackUpdatedMessage
fn clone(&self) -> SlackUpdatedMessage
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 SlackUpdatedMessage
impl Debug for SlackUpdatedMessage
Source§impl<'de> Deserialize<'de> for SlackUpdatedMessage
impl<'de> Deserialize<'de> for SlackUpdatedMessage
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<SlackUpdatedMessageInit> for SlackUpdatedMessage
impl From<SlackUpdatedMessageInit> for SlackUpdatedMessage
Source§fn from(value: SlackUpdatedMessageInit) -> Self
fn from(value: SlackUpdatedMessageInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackUpdatedMessage
impl PartialEq for SlackUpdatedMessage
Source§impl Serialize for SlackUpdatedMessage
impl Serialize for SlackUpdatedMessage
impl StructuralPartialEq for SlackUpdatedMessage
Auto Trait Implementations§
impl Freeze for SlackUpdatedMessage
impl RefUnwindSafe for SlackUpdatedMessage
impl Send for SlackUpdatedMessage
impl Sync for SlackUpdatedMessage
impl Unpin for SlackUpdatedMessage
impl UnwindSafe for SlackUpdatedMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)