pub struct PartialUser {
pub id: Option<String>,
pub username: Option<String>,
pub discriminator: Option<String>,
pub avatar: Option<String>,
pub bot: Option<bool>,
}Expand description
Partial user object from Discord READY event payload.
Fields§
§id: Option<String>§username: Option<String>§discriminator: Option<String>§avatar: Option<String>§bot: Option<bool>Trait Implementations§
Source§impl Clone for PartialUser
impl Clone for PartialUser
Source§impl Debug for PartialUser
impl Debug for PartialUser
Source§impl<'de> Deserialize<'de> for PartialUser
impl<'de> Deserialize<'de> for PartialUser
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 PartialUser
impl RefUnwindSafe for PartialUser
impl Send for PartialUser
impl Sync for PartialUser
impl Unpin for PartialUser
impl UnsafeUnpin for PartialUser
impl UnwindSafe for PartialUser
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