#[non_exhaustive]pub struct CreateGroupDm {
pub access_tokens: Vec<String>,
pub nicks: BTreeMap<UserId, CompactString>,
}Expand description
The body of Create Group DM.
The access tokens are redacted in the Debug output.
discord.js counterpart: none (discord-api-types has no type for Create Group DM’s body).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_tokens: Vec<String>OAuth2 access tokens of the users, who granted the gdm.join scope.
nicks: BTreeMap<UserId, CompactString>The users’ nicknames in the group DM.
Implementations§
Trait Implementations§
Source§impl Clone for CreateGroupDm
impl Clone for CreateGroupDm
Source§impl Debug for CreateGroupDm
impl Debug for CreateGroupDm
Source§impl Default for CreateGroupDm
impl Default for CreateGroupDm
impl Eq for CreateGroupDm
Source§impl Hash for CreateGroupDm
impl Hash for CreateGroupDm
Source§impl PartialEq for CreateGroupDm
impl PartialEq for CreateGroupDm
Source§impl Serialize for CreateGroupDm
impl Serialize for CreateGroupDm
impl StructuralPartialEq for CreateGroupDm
Auto Trait Implementations§
impl Forget for CreateGroupDm
impl Freeze for CreateGroupDm
impl Move for CreateGroupDm
impl RefUnwindSafe for CreateGroupDm
impl Send for CreateGroupDm
impl Sync for CreateGroupDm
impl Unpin for CreateGroupDm
impl UnsafeUnpin for CreateGroupDm
impl UnwindSafe for CreateGroupDm
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