#[non_exhaustive]pub struct GroupDmAddRecipient {
pub access_token: String,
pub nick: Option<CompactString>,
}Expand description
The body of Group DM Add Recipient.
The access token is redacted in the Debug output.
discord.js counterpart: RESTPutAPIChannelRecipientJSONBody (discord-api-types).
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_token: StringThe OAuth2 access token of the user, who granted the gdm.join scope.
nick: Option<CompactString>The user’s nickname in the group DM.
Implementations§
Trait Implementations§
Source§impl Clone for GroupDmAddRecipient
impl Clone for GroupDmAddRecipient
Source§impl Debug for GroupDmAddRecipient
impl Debug for GroupDmAddRecipient
impl Eq for GroupDmAddRecipient
Source§impl Hash for GroupDmAddRecipient
impl Hash for GroupDmAddRecipient
Source§impl PartialEq for GroupDmAddRecipient
impl PartialEq for GroupDmAddRecipient
Source§impl Serialize for GroupDmAddRecipient
impl Serialize for GroupDmAddRecipient
impl StructuralPartialEq for GroupDmAddRecipient
Auto Trait Implementations§
impl Forget for GroupDmAddRecipient
impl Freeze for GroupDmAddRecipient
impl Move for GroupDmAddRecipient
impl RefUnwindSafe for GroupDmAddRecipient
impl Send for GroupDmAddRecipient
impl Sync for GroupDmAddRecipient
impl Unpin for GroupDmAddRecipient
impl UnsafeUnpin for GroupDmAddRecipient
impl UnwindSafe for GroupDmAddRecipient
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