pub struct DispatchEventWithTypeDeserializer<'a>(/* private fields */);
Expand description
Deserialize into a DispatchEvent
by knowing its event name.
An event name is something like "CHANNEL_CREATE"
or "GUILD_MEMBER_ADD"
.
Implementations§
Trait Implementations§
source§impl<'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.
source§fn 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.source§impl<'a> PartialEq<DispatchEventWithTypeDeserializer<'a>> for DispatchEventWithTypeDeserializer<'a>
impl<'a> PartialEq<DispatchEventWithTypeDeserializer<'a>> for DispatchEventWithTypeDeserializer<'a>
source§fn 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 ==
.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§
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