pub struct DMChannel {
pub id: u128,
pub name: Option<String>,
pub users: Vec<User>,
pub group: bool,
}
Fields§
§id: u128
The channel ID
128 bit unsigned integer
name: Option<String>
The channel’s name Only applies to Group DMs String of max length 100 chars
users: Vec<User>
The users inside the DM channel
Vec of User
s
group: bool
Boolean indicating whether the DM being created is a group or not. If false is passed, it will be a regular direct message between 2 people true/false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DMChannel
impl<'de> Deserialize<'de> for DMChannel
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
Auto Trait Implementations§
impl Freeze for DMChannel
impl RefUnwindSafe for DMChannel
impl Send for DMChannel
impl Sync for DMChannel
impl Unpin for DMChannel
impl UnwindSafe for DMChannel
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