twilight_model/guild/scheduled_event/
user.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    guild::Member,
    id::{marker::ScheduledEventMarker, Id},
    user::User,
};
use serde::{Deserialize, Serialize};

/// Container for user and member data returned by Discord.
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub struct GuildScheduledEventUser {
    /// ID of the scheduled event.
    pub guild_scheduled_event_id: Id<ScheduledEventMarker>,
    /// Member object of the user, if requested.
    pub member: Option<Member>,
    /// User object.
    pub user: User,
}