pub struct SlackMessageEventEdited {
pub content: Option<SlackMessageContent>,
pub sender: SlackMessageSender,
pub ts: SlackTs,
pub edited: Option<SlackMessageEdited>,
}Fields§
§content: Option<SlackMessageContent>§sender: SlackMessageSender§ts: SlackTs§edited: Option<SlackMessageEdited>Implementations§
Source§impl SlackMessageEventEdited
impl SlackMessageEventEdited
Sourcepub fn new(sender: SlackMessageSender, ts: SlackTs) -> Self
pub fn new(sender: SlackMessageSender, ts: SlackTs) -> Self
Creates a new SlackMessageEventEdited from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn content(&mut self, value: SlackMessageContent) -> &mut Self
Sets content to Some(value).
Sourcepub fn reset_content(&mut self) -> &mut Self
pub fn reset_content(&mut self) -> &mut Self
Sets content to None.
Sourcepub fn mopt_content(&mut self, value: Option<SlackMessageContent>) -> &mut Self
pub fn mopt_content(&mut self, value: Option<SlackMessageContent>) -> &mut Self
Sets content to the given Option.
Sourcepub fn with_content(self, value: SlackMessageContent) -> Self
pub fn with_content(self, value: SlackMessageContent) -> Self
Returns self with content set to Some(value).
Sourcepub fn without_content(self) -> Self
pub fn without_content(self) -> Self
Returns self with content set to None.
Sourcepub fn opt_content(self, value: Option<SlackMessageContent>) -> Self
pub fn opt_content(self, value: Option<SlackMessageContent>) -> Self
Returns self with content set to the given Option.
Sourcepub fn sender(&mut self, value: SlackMessageSender) -> &mut Self
pub fn sender(&mut self, value: SlackMessageSender) -> &mut Self
Sets sender to value.
Sourcepub fn with_sender(self, value: SlackMessageSender) -> Self
pub fn with_sender(self, value: SlackMessageSender) -> Self
Returns self with sender set to value.
Sourcepub fn edited(&mut self, value: SlackMessageEdited) -> &mut Self
pub fn edited(&mut self, value: SlackMessageEdited) -> &mut Self
Sets edited to Some(value).
Sourcepub fn reset_edited(&mut self) -> &mut Self
pub fn reset_edited(&mut self) -> &mut Self
Sets edited to None.
Sourcepub fn mopt_edited(&mut self, value: Option<SlackMessageEdited>) -> &mut Self
pub fn mopt_edited(&mut self, value: Option<SlackMessageEdited>) -> &mut Self
Sets edited to the given Option.
Sourcepub fn with_edited(self, value: SlackMessageEdited) -> Self
pub fn with_edited(self, value: SlackMessageEdited) -> Self
Returns self with edited set to Some(value).
Sourcepub fn without_edited(self) -> Self
pub fn without_edited(self) -> Self
Returns self with edited set to None.
Sourcepub fn opt_edited(self, value: Option<SlackMessageEdited>) -> Self
pub fn opt_edited(self, value: Option<SlackMessageEdited>) -> Self
Returns self with edited set to the given Option.
Trait Implementations§
Source§impl Clone for SlackMessageEventEdited
impl Clone for SlackMessageEventEdited
Source§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§impl Serialize for SlackMessageEventEdited
impl Serialize for SlackMessageEventEdited
impl StructuralPartialEq for SlackMessageEventEdited
Auto Trait Implementations§
impl Freeze for SlackMessageEventEdited
impl RefUnwindSafe for SlackMessageEventEdited
impl Send for SlackMessageEventEdited
impl Sync for SlackMessageEventEdited
impl Unpin for SlackMessageEventEdited
impl UnsafeUnpin 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