Struct discord_bots::SimpleUser
source · pub struct SimpleUser {
pub id: Snowflake,
pub username: String,
pub discriminator: String,
pub avatar: Option<String>,
pub def_avatar: String,
}
Expand description
DBL simple user
Fields
id: Snowflake
username: String
discriminator: String
avatar: Option<String>
def_avatar: String
Trait Implementations
sourceimpl Clone for SimpleUser
impl Clone for SimpleUser
sourcefn clone(&self) -> SimpleUser
fn clone(&self) -> SimpleUser
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SimpleUser
impl Debug for SimpleUser
sourceimpl<'de> Deserialize<'de> for SimpleUser
impl<'de> Deserialize<'de> for SimpleUser
sourcefn 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
sourceimpl Serialize for SimpleUser
impl Serialize for SimpleUser
Auto Trait Implementations
impl RefUnwindSafe for SimpleUser
impl Send for SimpleUser
impl Sync for SimpleUser
impl Unpin for SimpleUser
impl UnwindSafe for SimpleUser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more