pub struct DispatchEventWithTypeDeserializer<'a>(_);Expand description
Deserialize into a DispatchEvent by knowing its event name.
An event name is something like "CHANNEL_CREATE" or "GUILD_MEMBER_ADD".
Implementations
sourceimpl<'a> DispatchEventWithTypeDeserializer<'a>
impl<'a> DispatchEventWithTypeDeserializer<'a>
Trait Implementations
sourceimpl<'de, 'a> DeserializeSeed<'de> for DispatchEventWithTypeDeserializer<'a>
impl<'de, 'a> DeserializeSeed<'de> for DispatchEventWithTypeDeserializer<'a>
type Value = DispatchEvent
type Value = DispatchEvent
The type produced by using this seed.
sourcefn deserialize<D: Deserializer<'de>>(
self,
deserializer: D
) -> Result<Self::Value, D::Error>
fn deserialize<D: Deserializer<'de>>(
self,
deserializer: D
) -> Result<Self::Value, D::Error>
Equivalent to the more common Deserialize::deserialize method, except
with some initial piece of data (the seed) passed in. Read more
sourceimpl<'a> PartialEq<DispatchEventWithTypeDeserializer<'a>> for DispatchEventWithTypeDeserializer<'a>
impl<'a> PartialEq<DispatchEventWithTypeDeserializer<'a>> for DispatchEventWithTypeDeserializer<'a>
sourcefn eq(&self, other: &DispatchEventWithTypeDeserializer<'a>) -> bool
fn eq(&self, other: &DispatchEventWithTypeDeserializer<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl<'a> Eq for DispatchEventWithTypeDeserializer<'a>
impl<'a> StructuralEq for DispatchEventWithTypeDeserializer<'a>
impl<'a> StructuralPartialEq for DispatchEventWithTypeDeserializer<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DispatchEventWithTypeDeserializer<'a>
impl<'a> Send for DispatchEventWithTypeDeserializer<'a>
impl<'a> Sync for DispatchEventWithTypeDeserializer<'a>
impl<'a> Unpin for DispatchEventWithTypeDeserializer<'a>
impl<'a> UnwindSafe for DispatchEventWithTypeDeserializer<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more