Struct serenity::model::event::PresenceUpdateEvent [−][src]
pub struct PresenceUpdateEvent { pub guild_id: Option<GuildId>, pub presence: Presence, pub roles: Option<Vec<RoleId>>, }
Fields
guild_id: Option<GuildId>
presence: Presence
roles: Option<Vec<RoleId>>
Trait Implementations
impl Clone for PresenceUpdateEvent
[src]
impl Clone for PresenceUpdateEvent
fn clone(&self) -> PresenceUpdateEvent
[src]
fn clone(&self) -> PresenceUpdateEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for PresenceUpdateEvent
[src]
impl Debug for PresenceUpdateEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl CacheUpdate for PresenceUpdateEvent
[src]
impl CacheUpdate for PresenceUpdateEvent
type Output = ()
The return type of an update. Read more
fn update(&mut self, cache: &mut Cache) -> Option<()>
[src]
fn update(&mut self, cache: &mut Cache) -> Option<()>
Updates the cache with the implementation.
impl<'de> Deserialize<'de> for PresenceUpdateEvent
[src]
impl<'de> Deserialize<'de> for PresenceUpdateEvent
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for PresenceUpdateEvent
impl Send for PresenceUpdateEvent
impl Sync for PresenceUpdateEvent
impl Sync for PresenceUpdateEvent