pub enum Events {
Show 17 variants
Ping(Ping),
Joined(Joined),
Left(Left),
MessageCreated(MessageCreated),
MessageUpdated(MessageUpdated),
MessageDeleted(MessageDeleted),
BotMessageStampsUpdated(BotMessageStampsUpdated),
DirectMessageCreated(DirectMessageCreated),
DirectMessageUpdated(DirectMessageUpdated),
DirectMessageDeleted(DirectMessageDeleted),
ChannelCreated(ChannelCreated),
ChannelTopicChanged(ChannelTopicChanged),
UserCreated(UserCreated),
StampCreated(StampCreated),
TagAdded(TagAdded),
TagRemoved(TagRemoved),
Error(String),
}Variants§
Ping(Ping)
Joined(Joined)
Left(Left)
MessageCreated(MessageCreated)
MessageUpdated(MessageUpdated)
MessageDeleted(MessageDeleted)
BotMessageStampsUpdated(BotMessageStampsUpdated)
DirectMessageCreated(DirectMessageCreated)
DirectMessageUpdated(DirectMessageUpdated)
DirectMessageDeleted(DirectMessageDeleted)
ChannelCreated(ChannelCreated)
ChannelTopicChanged(ChannelTopicChanged)
UserCreated(UserCreated)
StampCreated(StampCreated)
TagAdded(TagAdded)
TagRemoved(TagRemoved)
Error(String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Events
impl<'de> Deserialize<'de> for Events
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<BotMessageStampsUpdated> for Events
impl From<BotMessageStampsUpdated> for Events
Source§fn from(bot_message_stamps_updated: BotMessageStampsUpdated) -> Self
fn from(bot_message_stamps_updated: BotMessageStampsUpdated) -> Self
Converts to this type from the input type.
Source§impl From<ChannelCreated> for Events
impl From<ChannelCreated> for Events
Source§fn from(channel_created: ChannelCreated) -> Self
fn from(channel_created: ChannelCreated) -> Self
Converts to this type from the input type.
Source§impl From<ChannelTopicChanged> for Events
impl From<ChannelTopicChanged> for Events
Source§fn from(channel_topic_changed: ChannelTopicChanged) -> Self
fn from(channel_topic_changed: ChannelTopicChanged) -> Self
Converts to this type from the input type.
Source§impl From<DirectMessageCreated> for Events
impl From<DirectMessageCreated> for Events
Source§fn from(direct_message_created: DirectMessageCreated) -> Self
fn from(direct_message_created: DirectMessageCreated) -> Self
Converts to this type from the input type.
Source§impl From<DirectMessageDeleted> for Events
impl From<DirectMessageDeleted> for Events
Source§fn from(direct_message_deleted: DirectMessageDeleted) -> Self
fn from(direct_message_deleted: DirectMessageDeleted) -> Self
Converts to this type from the input type.
Source§impl From<DirectMessageUpdated> for Events
impl From<DirectMessageUpdated> for Events
Source§fn from(direct_message_updated: DirectMessageUpdated) -> Self
fn from(direct_message_updated: DirectMessageUpdated) -> Self
Converts to this type from the input type.
Source§impl From<MessageCreated> for Events
impl From<MessageCreated> for Events
Source§fn from(message_created: MessageCreated) -> Self
fn from(message_created: MessageCreated) -> Self
Converts to this type from the input type.
Source§impl From<MessageDeleted> for Events
impl From<MessageDeleted> for Events
Source§fn from(message_deleted: MessageDeleted) -> Self
fn from(message_deleted: MessageDeleted) -> Self
Converts to this type from the input type.
Source§impl From<MessageUpdated> for Events
impl From<MessageUpdated> for Events
Source§fn from(message_updated: MessageUpdated) -> Self
fn from(message_updated: MessageUpdated) -> Self
Converts to this type from the input type.
Source§impl From<StampCreated> for Events
impl From<StampCreated> for Events
Source§fn from(stamp_created: StampCreated) -> Self
fn from(stamp_created: StampCreated) -> Self
Converts to this type from the input type.
Source§impl From<TagRemoved> for Events
impl From<TagRemoved> for Events
Source§fn from(tag_removed: TagRemoved) -> Self
fn from(tag_removed: TagRemoved) -> Self
Converts to this type from the input type.
Source§impl From<UserCreated> for Events
impl From<UserCreated> for Events
Source§fn from(user_created: UserCreated) -> Self
fn from(user_created: UserCreated) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a Events> for &'a BotMessageStampsUpdated
impl<'a> TryFrom<&'a Events> for &'a BotMessageStampsUpdated
Source§impl<'a> TryFrom<&'a Events> for &'a ChannelCreated
impl<'a> TryFrom<&'a Events> for &'a ChannelCreated
Source§impl<'a> TryFrom<&'a Events> for &'a ChannelTopicChanged
impl<'a> TryFrom<&'a Events> for &'a ChannelTopicChanged
Source§impl<'a> TryFrom<&'a Events> for &'a DirectMessageCreated
impl<'a> TryFrom<&'a Events> for &'a DirectMessageCreated
Source§impl<'a> TryFrom<&'a Events> for &'a DirectMessageDeleted
impl<'a> TryFrom<&'a Events> for &'a DirectMessageDeleted
Source§impl<'a> TryFrom<&'a Events> for &'a DirectMessageUpdated
impl<'a> TryFrom<&'a Events> for &'a DirectMessageUpdated
Source§impl<'a> TryFrom<&'a Events> for &'a MessageCreated
impl<'a> TryFrom<&'a Events> for &'a MessageCreated
Source§impl<'a> TryFrom<&'a Events> for &'a MessageDeleted
impl<'a> TryFrom<&'a Events> for &'a MessageDeleted
Source§impl<'a> TryFrom<&'a Events> for &'a MessageUpdated
impl<'a> TryFrom<&'a Events> for &'a MessageUpdated
Source§impl<'a> TryFrom<&'a Events> for &'a StampCreated
impl<'a> TryFrom<&'a Events> for &'a StampCreated
Source§impl<'a> TryFrom<&'a Events> for &'a TagRemoved
impl<'a> TryFrom<&'a Events> for &'a TagRemoved
Source§impl<'a> TryFrom<&'a Events> for &'a UserCreated
impl<'a> TryFrom<&'a Events> for &'a UserCreated
Source§impl TryFrom<Events> for BotMessageStampsUpdated
impl TryFrom<Events> for BotMessageStampsUpdated
Source§impl TryFrom<Events> for ChannelCreated
impl TryFrom<Events> for ChannelCreated
Source§impl TryFrom<Events> for ChannelTopicChanged
impl TryFrom<Events> for ChannelTopicChanged
Source§impl TryFrom<Events> for DirectMessageCreated
impl TryFrom<Events> for DirectMessageCreated
Source§impl TryFrom<Events> for DirectMessageDeleted
impl TryFrom<Events> for DirectMessageDeleted
Source§impl TryFrom<Events> for DirectMessageUpdated
impl TryFrom<Events> for DirectMessageUpdated
Source§impl TryFrom<Events> for MessageCreated
impl TryFrom<Events> for MessageCreated
Source§impl TryFrom<Events> for MessageDeleted
impl TryFrom<Events> for MessageDeleted
Source§impl TryFrom<Events> for MessageUpdated
impl TryFrom<Events> for MessageUpdated
Source§impl TryFrom<Events> for StampCreated
impl TryFrom<Events> for StampCreated
Source§impl TryFrom<Events> for TagRemoved
impl TryFrom<Events> for TagRemoved
Source§impl TryFrom<Events> for UserCreated
impl TryFrom<Events> for UserCreated
impl Eq for Events
impl StructuralPartialEq for Events
Auto Trait Implementations§
impl Freeze for Events
impl RefUnwindSafe for Events
impl Send for Events
impl Sync for Events
impl Unpin for Events
impl UnwindSafe for Events
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.