Enum serenity::model::event::RelatedId [−][src]
pub enum RelatedId<T> { Never, None, Some(T), Multiple(Vec<T>), }
Expand description
Similar to Option
, but with additional variants relevant to Event
’s id methods (such as
Event::user_id
).
Variants
This event type will never have this kind of related ID
This particular event has no related ID of this type, but other events of this type may.
A single related ID
Multiple related IDs
Tuple Fields of Multiple
0: Vec<T>