Events

Enum Events 

Source
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 Clone for Events

Source§

fn clone(&self) -> Events

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Events

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Events

Source§

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

Source§

fn from(bot_message_stamps_updated: BotMessageStampsUpdated) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelCreated> for Events

Source§

fn from(channel_created: ChannelCreated) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelTopicChanged> for Events

Source§

fn from(channel_topic_changed: ChannelTopicChanged) -> Self

Converts to this type from the input type.
Source§

impl From<DirectMessageCreated> for Events

Source§

fn from(direct_message_created: DirectMessageCreated) -> Self

Converts to this type from the input type.
Source§

impl From<DirectMessageDeleted> for Events

Source§

fn from(direct_message_deleted: DirectMessageDeleted) -> Self

Converts to this type from the input type.
Source§

impl From<DirectMessageUpdated> for Events

Source§

fn from(direct_message_updated: DirectMessageUpdated) -> Self

Converts to this type from the input type.
Source§

impl From<Joined> for Events

Source§

fn from(joined: Joined) -> Self

Converts to this type from the input type.
Source§

impl From<Left> for Events

Source§

fn from(left: Left) -> Self

Converts to this type from the input type.
Source§

impl From<MessageCreated> for Events

Source§

fn from(message_created: MessageCreated) -> Self

Converts to this type from the input type.
Source§

impl From<MessageDeleted> for Events

Source§

fn from(message_deleted: MessageDeleted) -> Self

Converts to this type from the input type.
Source§

impl From<MessageUpdated> for Events

Source§

fn from(message_updated: MessageUpdated) -> Self

Converts to this type from the input type.
Source§

impl From<Ping> for Events

Source§

fn from(ping: Ping) -> Self

Converts to this type from the input type.
Source§

impl From<StampCreated> for Events

Source§

fn from(stamp_created: StampCreated) -> Self

Converts to this type from the input type.
Source§

impl From<TagAdded> for Events

Source§

fn from(tag_added: TagAdded) -> Self

Converts to this type from the input type.
Source§

impl From<TagRemoved> for Events

Source§

fn from(tag_removed: TagRemoved) -> Self

Converts to this type from the input type.
Source§

impl From<UserCreated> for Events

Source§

fn from(user_created: UserCreated) -> Self

Converts to this type from the input type.
Source§

impl Hash for Events

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Events

Source§

fn eq(&self, other: &Events) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Events

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> TryFrom<&'a Events> for &'a BotMessageStampsUpdated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a ChannelCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a ChannelTopicChanged

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a DirectMessageCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a DirectMessageDeleted

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a DirectMessageUpdated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a Joined

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a Left

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a MessageCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a MessageDeleted

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a MessageUpdated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a Ping

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a StampCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a TagAdded

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a TagRemoved

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Events> for &'a UserCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: &'a Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for BotMessageStampsUpdated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for ChannelCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for ChannelTopicChanged

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for DirectMessageCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for DirectMessageDeleted

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for DirectMessageUpdated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for Joined

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for Left

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for MessageCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for MessageDeleted

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for MessageUpdated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for Ping

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for StampCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for TagAdded

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for TagRemoved

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Events> for UserCreated

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(event: Events) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Eq for Events

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,