#[non_exhaustive]pub struct CreateDm {
pub recipient_id: UserId,
}Expand description
The body of Create DM.
discord.js counterpart: RESTPostAPICurrentUserCreateDMChannelJSONBody (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.recipient_id: UserIdThe user to open a DM with.
Implementations§
Trait Implementations§
impl Copy for CreateDm
impl Eq for CreateDm
impl StructuralPartialEq for CreateDm
Auto Trait Implementations§
impl Forget for CreateDm
impl Freeze for CreateDm
impl Move for CreateDm
impl RefUnwindSafe for CreateDm
impl Send for CreateDm
impl Sync for CreateDm
impl Unpin for CreateDm
impl UnsafeUnpin for CreateDm
impl UnwindSafe for CreateDm
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