Struct slack_morphism::events::SlackEmojiChangedEvent
source · pub struct SlackEmojiChangedEvent {
pub subtype: SlackEmojiEventType,
pub name: Option<String>,
pub names: Option<Vec<String>>,
pub old_name: Option<String>,
pub new_name: Option<String>,
pub value: Option<Url>,
pub event_ts: SlackTs,
}
Fields§
§subtype: SlackEmojiEventType
§name: Option<String>
§names: Option<Vec<String>>
§old_name: Option<String>
§new_name: Option<String>
§value: Option<Url>
§event_ts: SlackTs
Implementations§
source§impl SlackEmojiChangedEvent
impl SlackEmojiChangedEvent
pub fn new(subtype: SlackEmojiEventType, event_ts: SlackTs) -> Self
pub fn subtype(&mut self, value: SlackEmojiEventType) -> &mut Self
pub fn with_subtype(self, value: SlackEmojiEventType) -> Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_name(self, value: String) -> Self
pub fn without_name(self) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
pub fn names(&mut self, value: Vec<String>) -> &mut Self
pub fn reset_names(&mut self) -> &mut Self
pub fn mopt_names(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn with_names(self, value: Vec<String>) -> Self
pub fn without_names(self) -> Self
pub fn opt_names(self, value: Option<Vec<String>>) -> Self
pub fn old_name(&mut self, value: String) -> &mut Self
pub fn reset_old_name(&mut self) -> &mut Self
pub fn mopt_old_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_old_name(self, value: String) -> Self
pub fn without_old_name(self) -> Self
pub fn opt_old_name(self, value: Option<String>) -> Self
pub fn new_name(&mut self, value: String) -> &mut Self
pub fn reset_new_name(&mut self) -> &mut Self
pub fn mopt_new_name(&mut self, value: Option<String>) -> &mut Self
pub fn with_new_name(self, value: String) -> Self
pub fn without_new_name(self) -> Self
pub fn opt_new_name(self, value: Option<String>) -> Self
pub fn value(&mut self, value: Url) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
pub fn mopt_value(&mut self, value: Option<Url>) -> &mut Self
pub fn with_value(self, value: Url) -> Self
pub fn without_value(self) -> Self
pub fn opt_value(self, value: Option<Url>) -> Self
pub fn event_ts(&mut self, value: SlackTs) -> &mut Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Trait Implementations§
source§impl Clone for SlackEmojiChangedEvent
impl Clone for SlackEmojiChangedEvent
source§fn clone(&self) -> SlackEmojiChangedEvent
fn clone(&self) -> SlackEmojiChangedEvent
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 SlackEmojiChangedEvent
impl Debug for SlackEmojiChangedEvent
source§impl<'de> Deserialize<'de> for SlackEmojiChangedEvent
impl<'de> Deserialize<'de> for SlackEmojiChangedEvent
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<SlackEmojiChangedEventInit> for SlackEmojiChangedEvent
impl From<SlackEmojiChangedEventInit> for SlackEmojiChangedEvent
source§fn from(value: SlackEmojiChangedEventInit) -> Self
fn from(value: SlackEmojiChangedEventInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackEmojiChangedEvent
impl PartialEq for SlackEmojiChangedEvent
source§fn eq(&self, other: &SlackEmojiChangedEvent) -> bool
fn eq(&self, other: &SlackEmojiChangedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackEmojiChangedEvent
impl Serialize for SlackEmojiChangedEvent
impl StructuralPartialEq for SlackEmojiChangedEvent
Auto Trait Implementations§
impl RefUnwindSafe for SlackEmojiChangedEvent
impl Send for SlackEmojiChangedEvent
impl Sync for SlackEmojiChangedEvent
impl Unpin for SlackEmojiChangedEvent
impl UnwindSafe for SlackEmojiChangedEvent
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