Struct twilight_model::gateway::payload::incoming::UserUpdate
source · pub struct UserUpdate(pub CurrentUser);
Tuple Fields§
§0: CurrentUser
Methods from Deref<Target = CurrentUser>§
sourcepub fn discriminator(&self) -> DiscriminatorDisplay
pub fn discriminator(&self) -> DiscriminatorDisplay
Create a Display
formatter for a user discriminator.
Trait Implementations§
source§impl Clone for UserUpdate
impl Clone for UserUpdate
source§fn clone(&self) -> UserUpdate
fn clone(&self) -> UserUpdate
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 UserUpdate
impl Debug for UserUpdate
source§impl Deref for UserUpdate
impl Deref for UserUpdate
source§impl DerefMut for UserUpdate
impl DerefMut for UserUpdate
source§impl<'de> Deserialize<'de> for UserUpdate
impl<'de> Deserialize<'de> for UserUpdate
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 Hash for UserUpdate
impl Hash for UserUpdate
source§impl PartialEq<UserUpdate> for UserUpdate
impl PartialEq<UserUpdate> for UserUpdate
source§fn eq(&self, other: &UserUpdate) -> bool
fn eq(&self, other: &UserUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.