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: SlackTsImplementations§
Source§impl SlackEmojiChangedEvent
impl SlackEmojiChangedEvent
Sourcepub fn new(subtype: SlackEmojiEventType, event_ts: SlackTs) -> Self
pub fn new(subtype: SlackEmojiEventType, event_ts: SlackTs) -> Self
Creates a new SlackEmojiChangedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn subtype(&mut self, value: SlackEmojiEventType) -> &mut Self
pub fn subtype(&mut self, value: SlackEmojiEventType) -> &mut Self
Sets subtype to value.
Sourcepub fn with_subtype(self, value: SlackEmojiEventType) -> Self
pub fn with_subtype(self, value: SlackEmojiEventType) -> Self
Returns self with subtype set to value.
Sourcepub fn reset_name(&mut self) -> &mut Self
pub fn reset_name(&mut self) -> &mut Self
Sets name to None.
Sourcepub fn without_name(self) -> Self
pub fn without_name(self) -> Self
Returns self with name set to None.
Sourcepub fn opt_name(self, value: Option<String>) -> Self
pub fn opt_name(self, value: Option<String>) -> Self
Returns self with name set to the given Option.
Sourcepub fn reset_names(&mut self) -> &mut Self
pub fn reset_names(&mut self) -> &mut Self
Sets names to None.
Sourcepub fn mopt_names(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn mopt_names(&mut self, value: Option<Vec<String>>) -> &mut Self
Sets names to the given Option.
Sourcepub fn with_names(self, value: Vec<String>) -> Self
pub fn with_names(self, value: Vec<String>) -> Self
Returns self with names set to Some(value).
Sourcepub fn without_names(self) -> Self
pub fn without_names(self) -> Self
Returns self with names set to None.
Sourcepub fn opt_names(self, value: Option<Vec<String>>) -> Self
pub fn opt_names(self, value: Option<Vec<String>>) -> Self
Returns self with names set to the given Option.
Sourcepub fn reset_old_name(&mut self) -> &mut Self
pub fn reset_old_name(&mut self) -> &mut Self
Sets old_name to None.
Sourcepub fn mopt_old_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_old_name(&mut self, value: Option<String>) -> &mut Self
Sets old_name to the given Option.
Sourcepub fn with_old_name(self, value: String) -> Self
pub fn with_old_name(self, value: String) -> Self
Returns self with old_name set to Some(value).
Sourcepub fn without_old_name(self) -> Self
pub fn without_old_name(self) -> Self
Returns self with old_name set to None.
Sourcepub fn opt_old_name(self, value: Option<String>) -> Self
pub fn opt_old_name(self, value: Option<String>) -> Self
Returns self with old_name set to the given Option.
Sourcepub fn reset_new_name(&mut self) -> &mut Self
pub fn reset_new_name(&mut self) -> &mut Self
Sets new_name to None.
Sourcepub fn mopt_new_name(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_new_name(&mut self, value: Option<String>) -> &mut Self
Sets new_name to the given Option.
Sourcepub fn with_new_name(self, value: String) -> Self
pub fn with_new_name(self, value: String) -> Self
Returns self with new_name set to Some(value).
Sourcepub fn without_new_name(self) -> Self
pub fn without_new_name(self) -> Self
Returns self with new_name set to None.
Sourcepub fn opt_new_name(self, value: Option<String>) -> Self
pub fn opt_new_name(self, value: Option<String>) -> Self
Returns self with new_name set to the given Option.
Sourcepub fn reset_value(&mut self) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
Sets value to None.
Sourcepub fn mopt_value(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_value(&mut self, value: Option<Url>) -> &mut Self
Sets value to the given Option.
Sourcepub fn with_value(self, value: Url) -> Self
pub fn with_value(self, value: Url) -> Self
Returns self with value set to Some(value).
Sourcepub fn without_value(self) -> Self
pub fn without_value(self) -> Self
Returns self with value set to None.
Sourcepub fn opt_value(self, value: Option<Url>) -> Self
pub fn opt_value(self, value: Option<Url>) -> Self
Returns self with value set to the given Option.
Sourcepub fn with_event_ts(self, value: SlackTs) -> Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Returns self with event_ts set to value.