pub struct InteractionDataResolved {
pub attachments: HashMap<Id<AttachmentMarker>, Attachment>,
pub channels: HashMap<Id<ChannelMarker>, InteractionChannel>,
pub members: HashMap<Id<UserMarker>, InteractionMember>,
pub messages: HashMap<Id<MessageMarker>, Message>,
pub roles: HashMap<Id<RoleMarker>, Role>,
pub users: HashMap<Id<UserMarker>, User>,
}
Expand description
Resolved mentioned resources.
Fields§
§attachments: HashMap<Id<AttachmentMarker>, Attachment>
Map of resolved attachments.
channels: HashMap<Id<ChannelMarker>, InteractionChannel>
Map of resolved channels.
members: HashMap<Id<UserMarker>, InteractionMember>
Map of resolved members.
Resolved members’ ID will map to a resolved user as well.
messages: HashMap<Id<MessageMarker>, Message>
Map of resolved messages.
roles: HashMap<Id<RoleMarker>, Role>
Map of resolved roles.
users: HashMap<Id<UserMarker>, User>
Map of resolved users.
Trait Implementations§
source§impl Clone for InteractionDataResolved
impl Clone for InteractionDataResolved
source§fn clone(&self) -> InteractionDataResolved
fn clone(&self) -> InteractionDataResolved
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 InteractionDataResolved
impl Debug for InteractionDataResolved
source§impl<'de> Deserialize<'de> for InteractionDataResolved
impl<'de> Deserialize<'de> for InteractionDataResolved
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 PartialEq for InteractionDataResolved
impl PartialEq for InteractionDataResolved
source§impl Serialize for InteractionDataResolved
impl Serialize for InteractionDataResolved
impl StructuralPartialEq for InteractionDataResolved
Auto Trait Implementations§
impl Freeze for InteractionDataResolved
impl RefUnwindSafe for InteractionDataResolved
impl Send for InteractionDataResolved
impl Sync for InteractionDataResolved
impl Unpin for InteractionDataResolved
impl UnwindSafe for InteractionDataResolved
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)