Struct twilight_model::gateway::presence::PresenceDeserializer
source · pub struct PresenceDeserializer(/* private fields */);
Implementations§
source§impl PresenceDeserializer
impl PresenceDeserializer
sourcepub const fn new(guild_id: Id<GuildMarker>) -> Self
pub const fn new(guild_id: Id<GuildMarker>) -> Self
Create a new deserializer for a presence when you know the guild ID but the payload probably doesn’t contain it.
Trait Implementations§
source§impl Clone for PresenceDeserializer
impl Clone for PresenceDeserializer
source§fn clone(&self) -> PresenceDeserializer
fn clone(&self) -> PresenceDeserializer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PresenceDeserializer
impl Debug for PresenceDeserializer
source§impl<'de> DeserializeSeed<'de> for PresenceDeserializer
impl<'de> DeserializeSeed<'de> for PresenceDeserializer
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 PartialEq<PresenceDeserializer> for PresenceDeserializer
impl PartialEq<PresenceDeserializer> for PresenceDeserializer
source§fn eq(&self, other: &PresenceDeserializer) -> bool
fn eq(&self, other: &PresenceDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PresenceDeserializer
impl StructuralEq for PresenceDeserializer
impl StructuralPartialEq for PresenceDeserializer
Auto Trait Implementations§
impl RefUnwindSafe for PresenceDeserializer
impl Send for PresenceDeserializer
impl Sync for PresenceDeserializer
impl Unpin for PresenceDeserializer
impl UnwindSafe for PresenceDeserializer
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